Migrating an existing project from Django 1.6 to 1.7

I have a project with Django 1.6 with Python 2.7 and for several reasons I would like to upgrade to Django 1.7.

Please note that the South has never been used in this project and that we have a custom model (this is important to keep in mind since custom models seem to be faced with convert_to_southunder this ticket ).

What would be the other steps to seamlessly transition to Django 1.7? My secret dream would be to avoid using the South and directly use Django 1.7 based schema migration support.

+4
source share
1 answer

in terms of db:

  • pip install django == 1.7
  • run ./manage.py makemigrations
  • run ./manage.py migrate

: https://docs.djangoproject.com/en/dev/releases/1.7/

, , (.. get_user_model() ). , .

" " :

  • . settings.AUTH_USER_MODEL ForeignKeys
  • - __init__

- :

+6
source

All Articles