-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrading to django 1.8.7 #7
Comments
@SimonGreenhill @stefelisabeth I guess, I need help with this from Django experts. Trying to run the app, I get a
|
@xrotwang -- have you tried running "python manage.py migrate auth"? |
Actually, reading that django-user-auth issue suggests that upgrading to django-user-auth v1.1 should fix it. |
I've seen that and tried all kinds of migrate. Django-user-auth is not even
|
Odd, try removing all the .pyc files, and then run
|
Hm. No luck. Maybe this jazzband/django-oauth-toolkit#204 (comment) is a good lead? Now we'd just need to know, which of the non-core apps pulotu has installed may lack migrations:
|
It's worth noting that this seems to be only a problem for the tests - maybe something goes wrong (possibly in migrations) when creating the test database? |
After some reading about how migrations work in Django, I did the following:
i.e. I promoted the current status of the DB model to be the initial one. After this, tests are running fine, as does the app - as far as I tested. So I suspect that the order of migrations in one of the apps was a problem, which only appeared in tests, because only then "old" migrations would be run. So I'd consider this issue fixed - or are there any problems with this approach? I also think for apps that are supposed to only have one running instance, this process of starting out with a clean slate (by throwing out historical code) makes a lot of sense when doing major upgrades, because in these cases, there will be no smooth rollback option anyway. |
This upgrade includes - upgrading requirements - rebasing the database model at the current status quo, i.e. replacing historical migrations with one big new initial migration - small code changes to prepare transition to Django 1.9 Closes #7
This seems to create a lot more problems than the upgrade to 1.7.x, e.g.
The text was updated successfully, but these errors were encountered: