After creating a project and entering the project file, execute the following command django-admin startproject MxOnline
Where MxOnline is the project name
Directory after new project
Among them :
- html files are stored in the templates folder
- manage.py is the file executed by our command to start django
- settings.py is the global configuration file
- url.py is the first-level url routing file
- wsgi.py file
-
All app files are stored in apps
- Every database change file is stored in migrations
- admin.py is the logic of background management
- External apps stored in extra_apps , such as xadmin
- log stores log files
- media stores files such as pictures uploaded by users
- Static stores static files, such as css, js , etc.