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?
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 backward compatible with django 2? No Django version is fully backwards compatible with the previous one.
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.
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.
Every Django release has release note with upgrading instructions.
Unfortunately the process is not automated, so you'll have to carefully go through both documents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With