In actual operation, the Python programming language first creates a project, which contains several important Python files. Today, we will fully understand the functions of these files through the content introduced in this article to facilitate our application.
- Summary of common Python Image Processing Techniques
- Interpretation of the basic application of Python Regular Expressions
- Interpretation of Python compressed file basic application code example
- Summary of common functions of the Python OS Module
- How to find duplicate files in Python
After creating a new Django project, four Python files are created by default:
_ Init _. py
Manage. py
Settings. py
Urls. py
The following describes the functions of these Python files:
_ Init _. py
The Django Project is a Python package, which is used to tell the Python folder as a package. In Python terminology, a package is a set of modules used to group similar files to prevent name conflicts.
Manage. py
This is another useful step to manage your project, and you can think of it as the django-admin.py version of your project, in fact, manage. py and django-admin.py are sharing the same background code.
Settings. py
This is the main configuration file of the Django project. In this file, you can specify many options, including database settings, Web language, and Django functions that require turn on.
Urls. py
This is another configuration file. You can think of it as a match between URLS and the Python method used to process them.
I hope the content of various useful Python files introduced here can help you.