APP_DIRS
Whether to find the file in the App.
BACKEND
Define the template engine to identify the variables and instructions in the template. The built-in templates include Django Templates and jinja2. Jinja2
DIRS
sets the path of the template and tells Django to find the location of the template in that place. The default is an empty table column
OPTIONS
The calling function used to fill the context in the RequestContext, generally without any modification.
STATIC_URL
It is a required attribute and the attribute value cannot be empty. If STATICFILES_DIRS is not configured, STATIC_URL can only identify the
STATICFILES_DIRS
configurable attributes of the static resource folder in the app. The attribute is in the form of a list or tuple, and each list element represents a static resource file. Folders, these folders can be named by themselves
admin
Built-in background management system
auth
Built-in user authentication system
contenttypes
Record all model metadata in the project (Django's ORM framework)
sessions session
session function, used to identify the current user identity, record related user information
messages
Message prompt function to
staticfiles
find static Resource path
BASE_DIR
Project path: The specific path of the current project in the system is mainly read through the OS module. The code is automatically generated when the project is created. Under normal circumstances, there is no need to modify the
SECRET_KEY
key configuration: it is a random value, which is automatically generated when the project is created. Under normal circumstances, no modification is required.
DEBUG
Debugging mode
ALLOWED_HOSTS
Domain name access authority
INSTALLED_APPS APP
list
"Security Middleware"
Built-in security mechanism to protect the communication security between users and websites
SessionMiddleware
Session function
LocaleMiddleware
Support Chinese language
CommonMiddleware
Processing request information, standardizing request content
CsrfViewMiddleware
Turn on CSRF protection function
Authentication Middleware
Turn on built-in user authentication system
MessageMiddleware
Turn on the built-in information prompt function.
XFrameOptions Middleware
Prevent malicious programs from clicking and hijacking.
URL
"URL (Uniform Resource Locator, uniform resource locator) is available from the Internet
succinct representation of a resource location and access method, the standard is the address of a resource on the Internet, on the Internet each
file has a unique The URL is used to indicate the path location of the file. Simply put, the URL is
the web address that is often referred to . Each address represents a different web page. In Django, the URL is also called URLconf"
Chinese interpretation of settings in django
Guess you like
Origin blog.csdn.net/weixin_47021806/article/details/111351620
Recommended
Ranking