Version to run on serve #1

Open
petr wants to merge 52 commits from petr/www.tagesschule-elementa.ch:mprofiag into standalone
Showing only changes of commit 0cb9122f2d - Show all commits

View File

@@ -26,4 +26,18 @@ your filesystem
docker-compose exec web manage.py migrate
5.
5. Add admin user
In docker container `docker-compose exec web bash` run
python manage.py shell
In that shell create admin user (https://stackoverflow.com/questions/18503770/how-to-create-user-from-django-shell)
user@host> manage.py shell
>>> from django.contrib.auth.models import User
>>> user=User.objects.create_user('foo', password='bar')
>>> user.is_superuser=True
>>> user.is_staff=True
>>> user.save()