This is Rahnama. A supervisor simulator for students.
- Install
virtualenvwrapperpackage on your system. - Make the following virtualenv with python3:
mkvirtualenv rahnama- Everytime you need to work on the project use the following command:
workon rahnamaWhen you're in the virtualenv, install python dependencies:
pip install -r requirements.txtIf it's your first use, run migrations to build the database:
./manage.py migrateTo run a development environment first run:
npm startto make and serve frontend bundles. Then run:
./manage.py runserverto start Django server and open your browser at http://localhost:8000
If you have problem with static files, run this:
./build.shTo run a production build first run:
./build.shto build frontend bundles. Then set DEBUG to false and set your hosts in ALLOWED_HOSTS
in settings.py and run the project with gunicorn and nginx.