Django是用Python几造的?
黄舟
黄舟 2017-04-17 13:19:14
0
3
672

Django是用python2.x还是3.x开发的?
还是可以随便用?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

répondre à tous(3)
伊谢尔伦

从去年的Django 1.5开始就已经支持Python3了。如果没用到只支持Python2的包,建议用Python3.

PHPzhong

目前最新版本django两个都是支持的
可以看官方的 tutorial 里有写https://docs.djangoproject.com/en/1.6/intro/tutorial01/

This tutorial is written for Django 1.6 and Python 2.x. If the Django version doesn’t match, you can refer to the tutorial for your version of Django by using the version switcher at the bottom right corner of this page, or update Django to the newest version. If you are using Python 3.x, be aware that your code may need to differ from what is in the tutorial and you should continue using the tutorial only if you know what you are doing with Python 3.x.

Peter_Zhu

Python2和 Python3都兼容的,刚用 python3.4+Django1.8.7开发了一个商城性质的网站,用到的包也都能兼容到 Pyhton3,如果是新项目,建议直接 Python3.

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!