simple online judge
simple online judge
sudo apt install python3 python3-pip mysql-server
pip3 install django djangorestframework mysqlclient
Create empty database soj.(This is not a command!)
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser —user admin
You can check soj/urls.py for routes, soj/oj/views.py for HTTP handlers.(This is not a command!)
python3 manage.py runserver 0.0.0.0:8080
You can use postman to test api.(This is not a command!)
Browse http://localhost:8080/admin to modeify your database.(This is not a command!)