#23618: Migrations only work for apps containing models
-------------------------------------+-------------------------------------
     Reporter:  seddonym             |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  1.7
    Component:  Migrations           |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by claudep):

 Typical GIS error (whatever the backend) when removing the
 `app_config.models_module` check:
 {{{
 Applying gis_migrations.0001_initial...Traceback (most recent call last):
   File "./runtests.py", line 391, in <module>
     options.failfast, options.modules)
   File "./runtests.py", line 234, in django_tests
     test_labels or get_installed(), extra_tests=extra_tests)
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/test/runner.py", line
 151, in run_tests
     old_config = self.setup_databases()
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/test/runner.py", line
 113, in setup_databases
     return setup_databases(self.verbosity, self.interactive, self.keepdb,
 **kwargs)
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/test/runner.py", line
 304, in setup_databases
     serialize=connection.settings_dict.get("TEST", {}).get("SERIALIZE",
 True),
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/db/backends/creation.py",
 line 385, in create_test_db
     test_flush=True,
   File "/home/jenkins/workspace/django-pull-
 
requests/database/mysql_gis/python/python2.7/django/core/management/__init__.py",
 line 118, in call_command
     return command.execute(*args, **defaults)
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/core/management/base.py",
 line 419, in execute
     output = self.handle(*args, **options)
   File "/home/jenkins/workspace/django-pull-
 
requests/database/mysql_gis/python/python2.7/django/core/management/commands/migrate.py",
 line 193, in handle
     executor.migrate(targets, plan, fake=options.get("fake", False))
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/db/migrations/executor.py",
 line 63, in migrate
     self.apply_migration(migration, fake=fake)
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/db/migrations/executor.py",
 line 91, in apply_migration
     if self.detect_soft_applied(migration):
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/db/migrations/executor.py",
 line 135, in detect_soft_applied
     apps = project_state.render()
   File "/home/jenkins/workspace/django-pull-
 requests/database/mysql_gis/python/python2.7/django/db/migrations/state.py",
 line 89, in render
     model=lookup_model,
 ValueError: Lookup failed for model referenced by field
 gis_migrations.Household.neighborhood: gis.Neighborhood
 }}}
 http://djangoci.com/job/django-pull-requests/1249/

--
Ticket URL: <https://code.djangoproject.com/ticket/23618#comment:2>
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/066.5a756b28132d77826d31170bcc71fcaf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to