Question

I'm currently testing frameworks to create a big multiplayers game. I choose Django.

But I have a question about the version of Python. I should to create that project from scratch with Python 3.x or Python 2.x?

Python 3.x and Django compatibly is ok, or not production usable for now?

Était-ce utile?

La solution

I wouldn't highly suggest going production with Python 3 with Django or for that matter any other framework that requires you to depend on many third party applications, although many have been ported to Python 3, you still may find bugs, which you will likely have to fix or wait awhile before maintainers get to it.

Also, there aren't many compelling reasons to move to Python 3 at the moment, but that I suspect that will change soon with all the asynchronous work being put into Python 3.

Django is compatible with Python 3.

Autres conseils

There's at least one issue with Python3 + Django (1.6) + MySQL.

MySQLdb hasn't been ported to Python3 yet.

The other python-only mysql connector mentioned in the Django documentation (MySQL Connector/Python) has a bug in it which might stop it working with fixtures.

http://bugs.mysql.com/bug.php?id=72001

It looks like Oracle has closed this bug report by documenting that the problem may occur; so a real fix doesn't look likely any time soon.

So if you rely on fixtures and use MySQL, you'll likely have a problem.

Try using the latest GA version of mysql-connector-python.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top