Home  >  Q&A  >  body text

Django是用Python几造的?

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

黄舟黄舟2766 days ago690

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:21:14

    Python3 has been supported since Django 1.5 last year. If you are not using a package that only supports Python2, it is recommended to use Python3.

    reply
    0
  • PHPz

    PHPz2017-04-17 13:21:14

    目前最新版本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.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:21:14

    Both Python2 and Python3 are compatible. I just developed a mall-type website using python3.4+Django1.8.7. The packages used are also compatible with Pyhton3. If it is a new project, it is recommended to use Python3 directly.

    reply
    0
  • Cancelreply