Opened 11 years ago
Closed 11 years ago
#22129 closed Cleanup/optimization (fixed)
super user creation prompts after executing migrate, not in tutorial
Reported by: | kirby_agudelo | Owned by: | Greg Chapple |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | documentation |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
creating django app for the first time from source I followed steps in documentaion. after executing "migrate" command, i was prompted with
You have installed Django's auth system, and don't have any superusers defined.
Would you like to create one now? (yes/no):
it was not in documentation that such prompt will appear
here are the details
django version 1.7a2
used pdf document page 20 "Getting started"
created app1 with command
python manage.py startapp app1
edited settings.py to add app1
created models to models.py from documentation
class Question( models.Model ):
question_test = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Choice(models.Model):
question = models.ForeignKey(Question)
choice_text = models.CharField(max_length=200)
execute makemigrations
python manage.py manage.py makemigrations app1
execute migrate
python manage.py migrate
displayed:
Operations to perform:
Synchronize unmigrated apps: admin, contenttypes, auth, sessions
Apply all migrations: app1
Synchronizing apps without migrations:
Creating tables...
Installing custom SQL...
Installing indexes...
Running migrations:
No migrations needed.
You have installed Django's auth system, and don't have any superusers defined.
Would you like to create one now? (yes/no):
automates user creation but i dont want to create user yet. maybe some kind of switch will be nice to bypass this when executing "migrate"
upon executing migrate for simple models, i was prompted to create user (not in docs)
Change History (5)
comment:1 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 11 years ago
Resolution: | worksforme |
---|---|
Status: | closed → new |
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
This issue was discovered during the sprints at PyCon.PH. On closer inspection, I agree that there is an existing reference to the fact that you'll be asked to create a super user; however, it's subtle. We had a couple of newcomers (including Kirby) running the tutorial for the first time, and they all got stuck on the same point. I think it's worth making this step crystal clear, possibly with an example snippet of what you'd expect to see from the console.
comment:3 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 11 years ago
Has patch: | set |
---|
Created pull request for this ticket: https://github.com/django/django/pull/2370
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Hi,
Are you sure you're following the version of the documentation that corresponds to the Django version you're using?
The page at https://docs.djangoproject.com/en/dev/intro/tutorial01/#database-setup states that (emphasis mine):
Thanks.