Web Portal for managing Self Growth and Community Work projects for the students of IIIT Delhi, India.
Here's a list of things you'll need to have prior to setting up the software.
- Python3
- MySQL
- Memcached
-
Create a new
SQL
database with the namecw_portal
and create a new SQL usercw
with all privileges oncw_portal
database. -
Install the required packages
sudo apt-get install python-dev \
build-essential libssl-dev libffi-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
python-pip
sudo apt-get install libmysqlclient-dev
sudo apt-get install python-mysqldb
pip3 install mysql-python
- Install the required libraries.
pip3 install requirements.txt
- Setup Migrations
python3 manage.py migrate
- Setup SQL database variables as follows
USE cw_portal;
INSERT INTO `cw_portal`.`supervisor_flags`
(`name`, `value`)
VALUES
("add_project", 1);
INSERT INTO `cw_portal`.`studentportal_category`
(`name`, `description`)
VALUES
("SG", "Self Growth");
INSERT INTO `cw_portal`.`studentportal_category`
(`name`, `description`)
VALUES
("CW", "Community Work");
- Create a new superuser
python3 manage.py createsuperuser
- Run your portal
python3 manage.py runserver
- You can alternatively set up WSGI and NGINX to serve the website.