Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin user in the docker image #61

Open
evlist opened this issue Apr 17, 2020 · 2 comments
Open

Admin user in the docker image #61

evlist opened this issue Apr 17, 2020 · 2 comments

Comments

@evlist
Copy link

evlist commented Apr 17, 2020

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.

@mshahat
Copy link

mshahat commented Mar 26, 2021

against what should i run the python manage.py createsuperuser ?

@agafonovdmitry
Copy link

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', '[email protected]', 'admin')"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants