-
Notifications
You must be signed in to change notification settings - Fork 16
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
Default user/password? #156
Comments
I have circumvented by creating a new user via the browser, then setting |
Good call. Sorry again about that, glad you found a workaround. I'll probably just include the default in the docs, but know for the future that you can also use the "createsuperuser" command (https://docs.djangoproject.com/en/3.1/ref/django-admin/#createsuperuser) in a similar manner to the other two commands you just ran. Also if you don't mind I'm gonna keep this open for a bit as a reminder to update the docs when I have a moment. |
Yes of course, thanks for creating this! I can contrib to docs when I have a chance, in the meantime here are some notes for the workaround which I have tried to be fairly detailed: To create user:
Second go to http://localhost/accounts/create/ & complete form. Third give superuser permissions. Begin by logging into database.
Note that after the after -U and -W is what you have put in Next update user.
Note semicolon! If you want to check if you're giving to correct user
That is all, now you can login at Note: You may verify docker container
(or tab-complete may help)
|
Thanks for the writeup of what you've done, it is good to have a well documented backup solution. This is the part where I admit I don't know why the container doesn't have django-admin. I do know though that the manage.py file is the same as django-admin ( https://docs.djangoproject.com/en/3.1/ref/django-admin/ ) . This isn't something of my own doing, a blank django project will have a manage.py with all the features of django-admin. Either way, this is why the commands I gave you previously started with |
Oh, nah you're right it does exist! I was using p.s. two other notes (maybe this issue name should be documentation updates?) which I'll jot in less full than above which turned out to be a waste of time ...
|
Closing this as the step for creating an admin user has been added to docs on dev branch to be released next version. The helpful items from the last comment will be copied into a new issue. |
linking for my ref via #160 |
I have just done new docker setup, cannot log in to staff page. I see the default root user is "hunt" but not sure password ?
The text was updated successfully, but these errors were encountered: