Adding South to Django project, development & production

前端 未结 3 841
遇见更好的自我
遇见更好的自我 2020-12-28 10:10

Adding South to an existing Django project. I have it installed on both the development machine and the \"production\" server.

I\'ve done the following on the develo

3条回答
  •  清酒与你
    2020-12-28 10:37

    My guide says:

    1. Install South on server. import south from shell just to make sure you are using the same python env.
    2. Add 'south' to INSTALLED_APPS in settings.py.
    3. Upload settings.py.
    4. Restart server
    5. python manage.py syncdb.
    6. Upload new app/models.py and app/migrations/ dir.
    7. Restart server.
    8. python manage.py migrate app --fake 0001
    9. python manage.py migrate app

提交回复
热议问题