Search code examples
pythondjangomanage.py

upgrading python django project 1.3 to 1.5


currently i have python project using django version 1.3 running on mountain lion OS and now i want to upgrade it to django 1.5. But when i put it and try to do python manage.py runserver i get an error saying

Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file settings.py does indeed exist, it's causing an ImportError somehow.)

i realized that the project structure is different, is there any way to convert or upgrading the 1.3 project into 1.5 project somehow?


Solution

  • Every Django release has release note with upgrading instructions.

    1. Upgrade your project to Django 1.4.
    2. Upgrade your project to Django 1.5.

    Unfortunately the process is not automated, so you'll have to carefully go through both documents.