When will Django support Python 3.x?

Question:

I understand Django can only be run on Python 2.7 or below. When will it run on Python 3.1 or above? I see that Django 1.3 is coming out, does that support Python 3.x?

Asked By: at.

||

Answers:

The official FAQ mentions it might take a year or two, but I don’t know when was that last revised.

I’ve been trying hard to find exactly where I’ve read their exact policies on Python support, but based on Django’s release process, you can understand that it will take some considerable time as it will likely happen through a major release only. Even if they’d decide to provide Py3k support today, it could take anything from 1 to 4 major releases to deprecate support from Python 2.4 up to Python 2.7.

Answered By: Filip Dupanović

It might run on Python 3 by the end of summer. http://news.ycombinator.com/item?id=2130853 I don’t know if that means “officially” or not, but it doesn’t sounds like it, so official support is probably slightly later.

The question is why you want to know? You can’t run it on Python 3 today. That’s all that matters. The day you can run it on python 3, then it matters. Before that it doesn’t. [Except to those doing the porting, of course 😉 ].

Predicting the future is easy. It’s making the predictions come true that is the hard part. 🙂

Answered By: Lennart Regebro

Alex Gaynor thinks about making the port a google summer of code project:

http://alexgaynor.net/2011/feb/17/django-and-python-3-take-2/

Answered By: Rasmus Kaj

loewis has been working on a port of django to python 3 for a while.

https://bitbucket.org/loewis/django-3k

On Sept 9th, 2011 jacob (on of the core devs) started the py3k feature branch and pulled these changes in.

https://github.com/django/django/tree/features/py3k

AFAIK, no official release number or date has been set for when django will support python 3. More info on this thread:

http://groups.google.com/group/django-developers/browse_thread/thread/abede3685ad0302/573c1e0ff35e1ab7

Answered By: Mike Fogel

Currently Django has passed py3k test.
The last port has been made available at Vinay Sajip repository in BitBucket
Check also news at PortingDjangoTo3k

And, finally, news from PyCon 2012:

Django 1.5 will bring experimental support for py3k.

Maybe targeting up to python 3.3 as both will be released in the same period (python 3.3 is scheduled for august 2012)

Answered By: joaquin

Django 1.5 supports python 3k right now, but it is still experimental:

[Django] plan[s] to offer first-class, production-ready support for
Python 3 in [the] next release, Django 1.6.

Answered By: speedplane

New version has been come out with Python 3 support (but still experimental). Check it out: https://www.djangoproject.com/weblog/2013/feb/26/15/

Answered By: Keeper
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.