From 0ed4248416eb21b0c106264fb5db84e693983eb7 Mon Sep 17 00:00:00 2001 From: winkidney Date: Sat, 6 Mar 2021 21:51:01 +0800 Subject: [PATCH] Doc: Add more detail info for docker password update --- docs/src/passwords.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/passwords.md b/docs/src/passwords.md index 8f85c5a..786d1ab 100644 --- a/docs/src/passwords.md +++ b/docs/src/passwords.md @@ -8,5 +8,8 @@ passwords involves: - Login to your admin panel `{your_website_url}/admin/` - Go to the users section, select the user, change their password. -Note: If you use that command to create superuser **inside docker**, please add `--settings=pinry.settings.docker` -to command like, just like `python manage.py createsuperuser --settings=pinry.settings.docker` +## Inside Docker +If you use that command to create superuser **inside docker**, +you could first exec to docker via command like +`docker exec -it bash` and then use +`python manage.py createsuperuser --settings=pinry.settings.docker`