4686: Initial migration for siteconfig fails because django_site table doesn't exist yet.

stevej

What version of Djblets are you using?

1.0.5

Which module(s) have the problem?

siteconfig

What steps will reproduce the problem?

  1. Perform an initial migration by running django-admin migrate --run-syncdb

What is the expected output? What do you see instead?

Expected migrations to complete successfully.
Got an error: django.db.utils.ProgrammingError: relation “django_site” does not exist

What version of Python and Django?

Python 2.7.14
Django 1.9.12

Please provide any additional information below.

I can work around the problem by executing migrations in 2 stages as follows:

django-admin migrate
django-admin migrate --run-syncdb

I had to figure out the workaround though, and it would be nice if that was not necessary.

chipx86
#1 chipx86

I recently hit this with some work I'm doing. I think a lot of this is going to end up changing down the road, but it needs some thought..

  • -New
    +Confirmed
  • -Project:RBTools
    +Project:Djblets