manage.py migrate doesn't call createsuperuser

174 views
Skip to first unread message

Yo-Yo Ma

unread,
Aug 31, 2014, 11:21:30 AM8/31/14
to django-d...@googlegroups.com
If this is a known bug, I apologize, otherwise I'll create a ticket in Trac for it.

Details:

INSTALLED_APPS is

(
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'storages',
)

MIDDLEWARE_CLASSES is

(
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

Result is

$ python manage.py migrate
Operations to perform:
  Synchronize unmigrated apps: storages
  Apply all migrations: admin, contenttypes, auth, sessions
Synchronizing apps without migrations:
  Creating tables...
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying sessions.0001_initial... OK

Yo-Yo Ma

unread,
Aug 31, 2014, 11:23:58 AM8/31/14
to django-d...@googlegroups.com
(continued)

I'm using Django 1.7c3, and the above is the first time running migrate (sqlite3 database deleted prior to running).

Shai Berger

unread,
Aug 31, 2014, 11:34:55 AM8/31/14
to django-d...@googlegroups.com
This was a deliberate change, I think it was discussed on the list but maybe just IRC. The tutorial was changed to reflect it, if any documentation still says otherwise it is a documentation bug.


On 31 באוגוסט 2014 18:23:58 GMT+03:00, Yo-Yo Ma <baxters...@gmail.com> wrote:
(continued)

I'm using Django 1.7c3, and the above is the first time running migrate (sqlite3 database deleted prior to running).


--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Yo-Yo Ma

unread,
Aug 31, 2014, 12:26:03 PM8/31/14
to django-d...@googlegroups.com
Ah, I see. Thanks Shai. The docs @ https://docs.djangoproject.com/en/1.7/topics/auth/#installation are what I was referencing. I just created a pull request @ https://github.com/django/django/pull/3143 for this.

Tim Graham

unread,
Aug 31, 2014, 12:26:11 PM8/31/14
to django-d...@googlegroups.com
See #22770 for the ticket. It's also in the migrate documentation.

On Sunday, August 31, 2014 11:34:55 AM UTC-4, Shai Berger wrote:
Reply all
Reply to author
Forward
0 new messages