Main functions of four Python files

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.