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

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)?

Related

Which version of Django rest framework for Django 2.1.5?

I am working with an old django version, and I can't identify which version of django rest framework I would need for a Django 2.1.5
I can't find this information in the official django-rest-framework documentation
Thanks
You can use the version of 3.11.1, which it the latest drf version for Django 2.1.
https://github.com/encode/django-rest-framework/blob/3.11.1/docs/index.md#requirements
https://github.com/encode/django-rest-framework/tree/3.11.1/docs
https://github.com/encode/django-rest-framework/tree/3.11.1
Python (3.5, 3.6, 3.7, 3.8)
Django (1.11, 2.0, 2.1, 2.2, 3.0)
The documentation are replaced from the website. But you can use above links to check the documentation by using markdown based.
You can also easily check to the tags itself: https://github.com/encode/django-rest-framework/tags, to check the old versions.
Requirements for rest framework
REST framework requires the following:
Python (3.6, 3.7, 3.8, 3.9, 3.10)
Django (2.2, 3.0, 3.1, 3.2, 4.0, 4.1)
source: https://www.django-rest-framework.org/#requirements

Django versions and database support (MariaDB)

Based on the release notes of Django, it seems that:
Support for Mysql 5.5 is dropped in Django 2.1
Support for MariaDB 10.1 and higher is added in Django 3.0
We currently use Django 2.0 with MariaDB 5.5, we'd like to upgrade to Django 3.0 and MariaDB 10.4.
What would be the suggested upgradepath to get to the latest version of Django and MariaDB?
Is Django 2.1 and 2.2 compatible with MariaDB 5.5 and should we upgrade to Django before upgrading MariaDB?
Or is unofficial support for MariaDB 10.x sufficient in Django 2.1 and Django 2.2 and should we just upgrade to MariaDB to 10.4 first?
The "added support" for MariaDB is mostly in name only (https://code.djangoproject.com/ticket/29548 and https://github.com/django/django/commit/b6c4766f53cf00bcf63cc2aa8be977c8589d083e) and is achieved through the mysql database backend. Assuming you are using the recommended mysqlclient version (1.3.13 or later) the safest upgrade strategy would be to first upgrade MariaDB 10.4.
Once that works I would recommend reading (and following) Django's upgrading docs: https://docs.djangoproject.com/en/3.0/howto/upgrade-version/ to get to Django 3.0
With Django >= 3.0, MariaDB is officially supported.
Django now officially supports MariaDB 10.1 and higher.

Can I use Python 3.7 with Django 1.11?

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.

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.