#23599: Default application used in startapp has an empty migration package
-------------------------------------+-------------------------------------
     Reporter:  yakky                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  migrations,          |             Triage Stage:
  dependencies, template             |  Unreviewed
  application                        |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by collinanderson):

 The `migrations` folder tells django's new `./manage.py makemigrations` to
 create an initial migration for that app. Otherwise `makemigrations` will
 assume it's an old, unmigrated app and ignore it. Once we require
 migrations for all apps, we could delay creating that folder until
 `makemigrations` is run the first time.

 Looking at the ticket on django-cms, this looks like the actual problem to
 me:

  > When I do `./manage.py makemigrations accounts` I get the following
 error (this is on an new, empty database, no other migrations have been
 applied yet.):
  > `django.db.migrations.state.InvalidBasesError: Cannot resolve bases for
 [<ModelState: 'cms.PageUser'>]`
  > If I temporarily comment out the cms apps from `INSTALLED_SETTINGS`, I
 can create the initial migration, then uncomment the cms apps and run the
 full `./manage.py migrate` without any problems.

--
Ticket URL: <https://code.djangoproject.com/ticket/23599#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.e09ca5c919e4dd60db585546da2fca5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to