Reputation: 1684
I have a project running Django 1.6 with Python 2.7 and, for several reasons, I would like to upgrade to Django 1.7.
Consider that South has never been used in this project and that we have a custom user model (this is important to keep in mind because custom user models seem to clash with convert_to_south
according to this ticket).
What would be the different steps to take in order to upgrade to Django 1.7 smoothly? My secret dream would be to avoid using South and directly take advantage of the native schema migration support of Django 1.7.
Upvotes: 5
Views: 2257
Reputation: 3806
from the db point of view:
./manage.py makemigrations
./manage.py migrate
that's all
for other compatibilities check release notes: https://docs.djangoproject.com/en/dev/releases/1.7/
The main problems that you can find is related to the new application loading mechanism (ie you cannot use get_user_model()
anywhere). There is no one way to solve it, depends by the code structure.
some 'everywhere valid' point are:
settings.AUTH_USER_MODEL
in ForeignKeys__init__
some reference:
Upvotes: 7