In Windows:
python -m pip install -r dependencies.txt
In Ubuntu:
sudo python3 -m pip install -r dependencies.txt
Run:
sudo python3 manage.py migrate --run-syncdb
To create superuser account, run:
sudo python3 manage.py createsuperuser
To run in the development server:
sudo python3 manage.py runserver 0.0.0.0:8000
Make sure you can access the admin page at:
localhost:8000/admin
This backend server uses celery and redis for the distributed async task queue, so you will need to install and configure theses settings properly.
In this project, we are currently using redis as a backend for celery, run redis:
redis-server
To start celery worker, cd to the project folder and run:
sudo celery -A online_judger_backend worker -l info