[Django]-Learning Django with Python 3?

2👍

In 2013, I still advise that if you’re learning Django, use Python 2.

Many resources, including the official tutorial for Django 1.6 are written for Python 2.X. You may have problems using Python 3.X unless you are aware of the subtleties of porting code from Python 2 to 3.

Once you are a bit more familiar with Django, then you can try converting your project to Python 3.

1👍

It depends on what third-party packages you plan on using.

According to the documentation here:

If you’re starting a new project, and the dependencies you plan to use work on Python 3, you should use Python 3. If they don’t, consider contributing to the porting efforts, or stick to Python 2.

If I were you, I would see what packages and dependencies you are going to use and decide from there. If you are not going to be using anything other than what you write then go for django 1.6 and python 3.

I just helped a friend through the Django tutorial using python 3 a few weeks ago and it went smoothly enough.

And remember there is an channel on irc.freenode.net for #django. The people there are really helpful make sure to check them out.

Leave a comment