Open evlist opened 4 years ago
against what should i run the python manage.py createsuperuser
?
I was able to do it like this, building own image:
FROM jforman/binder:latest
RUN ["python", "manage.py", "shell", "-c", "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')"]
Please note that, unlike written in the README, there is no admin user predefined in the docker image.
It's not a big deal since its easy to create through "python manage.py createsuperuser" in a newly created container (or image) and that's more secure than providing a default admin but that could be mentioned in the README ;) ...
Thanks.