Can I use Python 3.7 with Django 1.11? - django

We have an existing Django application which uses Django 1.11 and Python 3.6. For some security reasons I have been asked to use Python 3.7. I need to make the minimum changes possible. Do I need to upgrade Django as well? If so , is there any code changes required?
Thanks,

Python 3.7 compatibility was retrospectively added into the classifiers for Django v2.0 in this commit, even though v2.1 was already out. 1.11 was not included.
Discussion on Django tracker is here: https://code.djangoproject.com/ticket/28814
However, 1.11.x is LTS release series, so maybe if you're lucky that will still be added in a micro version upgrade at some later date.
Edit: Python 3.7 support was added in the micro version upgrade for Django 1.11.17 (2018-12-03, about 3 months after this question was originally asked)

According to this page on the Django docs, support for Python 3.7 was added in Django 1.11.17.
https://docs.djangoproject.com/en/1.11/faq/install/#what-python-version-can-i-use-with-django

"Django 1.11 requires Python 2.7, 3.4, 3.5, or 3.6. Django 1.11 is the first release to support Python 3.6. We highly recommend and only officially support the latest release of each series."
In the future, such questions are inevitably asked and answered in the Django docs.

Related

Can I apply Django 2.X version to the latest version?

Currently, the latest version of Django is 3.1. I'm not familiar with Django, so I looked for Django lectures, and there were many Django 2.X versions of lectures. Can I apply Django 2.X version lecture to the latest version of Django (3.1 version)?

huey django version compatibility

I checked huey's documentation and searched online, but couldn't find version compatibility information of huey with django. Can someone please provide me this information?
The Huey docs say that it supports officially supported Django versions.
In May 2017, the officially supported Django versions are Django 1.8 LTS, Django 1.10 and Django 1.11.

Upgrading a django 1.4 project to 1.8 version

I am new to django and i have a django 1.4 version project. i am trying to run it in django 1.8 environment. I'd like to upgrade my 1.4 project to 1.8 without rewriting the project.
If someone knows a way to do this please help me. I tried surfing for answers but couldn't find any.
There is no magic answer I am afraid.
You'll need to read the Django release notes for 1.5, 1.6, 1.7 and 1.8, and make any appropriate changes to your code.
Django recently updated their release roadmap, which will make it easier to upgrade from the current LTS 1.8 to the next LTS 1.11.

Can a older version of django project work on higher version?

I have a django project version 1.4 Is it possible to upgrade it to higher version so that it still works. Should I start the project again from scratch. Is so what are the steps? Is the a proper documentation of django for deployment of the project in windows.
You're right, the django migration is something not very documented.
In my opinion, the best thing you can do to be quick and secure, is:
Check all the major changes between Django 1.4 and 1.7 (look for changelog and Djang website).
Take a look to your code to be aware of what part will be obsolete after the migration.
Do the migration, in a non-critic environment of course. For this purpose, don't touch to your code first, just upgrade the Django version
Fix your code until it works perfectly (run unit tests if you have some).
You're ready to do the migration in a production environment.
I did it between Django 1.6 and Django 1.7 (and migrating from Python 2.x to 3.x in the same time). It was easier than I had imagined. However, Django 1.4 to 1.7 could be a little bit longer, but nothing hard.

Does Django1.3 supports python 2.7.2?

I have plans to upgrade my server.My major requirement is python django1.3 and postgres8.4
I am using Django 1.3 and python 2.6.5 currently.Since i want to upgrade the server I want to know whether django 1.3 supports python 2.7.2 ?
I have read the specification that 11.04 comes with python 2.7.1 and 11.10 comes with 2.7.2.
I know that django 1.3 supports 2.4 to 2.7 ? Since i don't want to take any risk on server I want to know whether django 1.3 supports python 2.7.1 or 2.7.2 or both.
Please specify how can i verify i have installed virtual env .I have multiple versions of django and python and they gave the error No module named django.core.management.
Thanks in advance
Django supports all versions of Python 2.7. Since 2.7.1 and 2.7.2 are minor versions of 2.7, Django will work with them.
We are using Django 1.3 and Python 2.7.2 at work for quite some time now, and have not faced any compatibility issues.
If you want to have multiple versions of python to be installed, it is better to use tools like pythonbrew (https://github.com/utahta/pythonbrew).
Regarding the error "No module named django.core.management", you might have installed django with one of your other versions of python. Again, Better to create virtual envs somewhere in your project directories(so they are easy to find), or Even better to use pythonbrew to manage virtual envs.