-
Notifications
You must be signed in to change notification settings - Fork 129
Dev_Administrator Procedures
Adrien Pavão edited this page Jun 15, 2021
·
25 revisions
In codalab-competitions
folder, on the CodaLab instance:
docker-compose up -d
docker-compose exec django bash
python manage.py reset_db
python manage.py migrate
python manage.py syncdb --migrate
exit
docker-compose restart
docker-compose up -d
This gives access to health/simple_status and more.
docker-compose exec django bash
# python manage.py shell_plus
>>> user = ClUser.objects.get(username="your username")
>>> user.is_superuser = True
>>> user.is_staff = True
>>> user.save()