Skip to content

CargoSpace/CargoSpaceChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run code as follows

source ../venv/bin/activate
python manage.py runserver $IP:$PORT

This project uses Socket.IO provided by Django Channels, therefore WSGI is not supported. ASGI is supported

Celery (Optional Worker but needed if you are handling large problem submissions)

sudo service redis-server start
celery -A csc worker -l debug

Sheduler (Doesn't work without a Worker "Celery". Needed If you need a Periodic Programming Contest)

celery -A csc beat -l debug -S django --max-interval 1

Pupulate with data

python manage.py loaddata --app=contest Contest_Settings Django_Celery_Beat
python manage.py loaddata --app=acm  Schools
python manage.py loaddata --app=acm Challenge