Django app creation process

We've created Django project started from pycharm in.

(1) We first configure the settings file Templates
Here Insert Picture Description(2) Enter the command in a terminal, generating app01
Here Insert Picture DescriptionHere Insert Picture Description
(3) Create your own static files in each app in
Here Insert Picture Description order: Python manage.py collectstatic (executed in a terminal)

Here Insert Picture DescriptionThe following static root folder:
Here Insert Picture Description
(4) most importantly, add urls configured in the root, and the app urls in accordance with the original format did not create urls in writing
Here Insert Picture Description
urls app at:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_39062888/article/details/89523486