search

Home  >  Q&A  >  body text

Tutorial has errors

http://www.php.cn/django/django-first-app.html


Create the first project

Use django-admin.py to create the HelloWorld project:

django-admin.py startproject HelloWorld

should be changed to

django-admin startproject HelloWorld

Otherwise, the file django-admin.py will be opened directly.

出门右拐是食堂出门右拐是食堂2615 days ago1498

reply all(2)I'll reply

  • 小试手笔

    小试手笔2017-09-22 00:47:43

    I don’t understand either!!! Which file name is it? How can I open the correct file if I don’t add it? How do I open it if I add it!!!

    reply
    1
  • PHP中文网

    PHP中文网2017-09-21 15:14:28

    You need to add .py. If you open the file directly, there may be a problem with your python environment installation.

    reply
    1
  • 出门右拐是食堂

    It may be the version difference between 2.x and 3.x.

    出门右拐是食堂 · 2017-09-25 09:22:03
  • Cancelreply