Go to an article: friends study (a) haven’t seen the Django can click on the link: http://www.zhouhongliang.cn/article/32.htm

To create a Django project, the first thing every program must do is output HelloWorld!

From the command line, enter: Django-admin.py

And when you see that, it’s a success. If an error is reported, you can add an environment variable to the configuration: D:\software\python\Lib\site-packages\ django-1.11.7-py3.4. egg\ Django-bin

Enter the command: Django-admin. py startProject HelloWorld

Create a project folder called HelloWorld.

The directory structure is:

|– HelloWorld

| |– init.py

| |– settings.py

| |– urls.py

| |– wsgi.py

|– manage.py

|–db.sqlite3

Next we go to the HelloWorld directory and type the following command to start the server:

Python manage. Py runserver then executes 0.0.0.0:8000

When you see something like this, you can access 127.0.0.1:8000 with your browser, and you’ll see

This article is originally written by zhouhongliang. Please note that it is from zhouhongliang’s blog zhouhongliang.cn