Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 967
rassel pratomo Avatar asked Jun 04 '13 09:06

rassel pratomo


People also ask

How do I change Django version in project?

Go to Settings -> Project Interpreter . Double-click the Django package. Activate the check box Specify version and select the version you want.

Is Django 3 backwards compatible?

Is django 3 backward compatible with django 2? No Django version is fully backwards compatible with the previous one.

Which Python version is best for Django?

What Python version should I use with Django? ¶ Since newer versions of Python are often faster, have more features, and are better supported, the latest version of Python 3 is recommended.

Does Django 1.11 support Python 3?

Python compatibilityDjango 1.11 requires Python 2.7, 3.4, 3.5, 3.6, or 3.7 (as of 1.11. 17). We highly recommend and only officially support the latest release of each series.


1 Answers

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.

like image 138
kirelagin Avatar answered Sep 19 '22 09:09

kirelagin