"""
Django settings for day006 project.
Generated by 'django-admin startproject' using Django 4.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-^*(pm$ml7p*#f=yw)0ow4wpv+v$@^cuvb63)8+2ut4-8xl3g4!'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# DEBUG = False
# ALLOWED_HOSTS = ["*"]
# Application definition
INSTALLED_APPS = [
# 'django.contrib.admin',
# 'django.contrib.auth',
# 'django.contrib.contenttypes',
# 'django.contrib.sessions',
# 'django.contrib.messages',
'django.contrib.staticfiles',
"apps.app01.apps.App01Config",
"apps.www.apps.WwwConfig",
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
# 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
# 'django.contrib.auth.middleware.AuthenticationMiddleware',
# 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'day006.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates', ],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
# 'django.contrib.auth.context_processors.auth',
# 'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'day006.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/4.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = 'static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
APPEND_SLASH = False
没有合适的资源?快使用搜索试试~ 我知道了~
2024-Django平台开发-Django知识点(四)
共61个文件
py:35个
pyc:19个
html:6个
0 下载量 145 浏览量
2024-01-07
20:05:15
上传
评论
收藏 25KB ZIP 举报
温馨提示
2024-Django平台开发-Django知识点(四)
资源推荐
资源详情
资源评论
收起资源包目录
day006.zip (61个子文件)
day006
db.sqlite3 0B
xxxxxxxxxxxxxxxx
xxxx.py 644B
helper
utils.py 83B
__pycache__
utils.cpython-39.pyc 377B
app.py 559B
属性.py 417B
编译代码.py 551B
day006
__init__.py 0B
wsgi.py 405B
urls.py 1KB
settings.py 3KB
__pycache__
urls.cpython-39.pyc 1KB
__init__.cpython-39.pyc 135B
settings.cpython-39.pyc 2KB
wsgi.cpython-39.pyc 536B
asgi.py 405B
templates
manage.py 684B
apps
app01
__init__.py 0B
tests.py 63B
admin.py 66B
migrations
__init__.py 0B
__pycache__
__init__.cpython-39.pyc 150B
apps.py 153B
models.py 60B
templates
__pycache__
__init__.cpython-39.pyc 139B
models.cpython-39.pyc 177B
apps.cpython-39.pyc 419B
views.py 66B
base
__init__.py 0B
tests.py 63B
admin.py 66B
migrations
__init__.py 0B
apps.py 146B
models.py 60B
urls.py 166B
__pycache__
urls.cpython-39.pyc 302B
__init__.cpython-39.pyc 138B
views.cpython-39.pyc 364B
views.py 188B
www
__init__.py 0B
tests.py 63B
admin.py 66B
migrations
__init__.py 0B
__pycache__
__init__.cpython-39.pyc 148B
apps.py 149B
models.py 60B
templates
nb.html 467B
xo.html 90B
excel.html 90B
layout.html 214B
demo.html 88B
order.html 90B
templatetags
xxx.py 354B
__pycache__
xxx.cpython-39.pyc 820B
urls.py 148B
__pycache__
urls.cpython-39.pyc 257B
__init__.cpython-39.pyc 137B
models.cpython-39.pyc 175B
views.cpython-39.pyc 3KB
apps.cpython-39.pyc 413B
views.py 2KB
共 61 条
- 1
资源评论
一夜白头催人泪
- 粉丝: 8192
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 南京邮电大学数学实验:熟练掌握 Matlab 软件的基本命令和操作
- 2017校招真题校园招聘真题算法题(37道)Python源码.zip
- 基于单片机protues仿真的多功能自动饮水机系统设计(仿真图、源代码、演示视频)
- 二叉树7-1-1.cpp
- android 9.0 原生模拟器 签名文件
- 技术面试最后反问面试官的话 校招面试非技术问题有哪些 非技术问题如何回答.png
- NB-IOT-BC26全网通模块Altium+ CADENCE +PADS三种格式(原理图SCH+PCB封装库)文件.zip
- 基于微信小程序开发的校园失物招领系统源码毕业设计(优质项目源码).zip
- 词向量是一种将自然语言中的单词转换为数值向量的技术,它能够捕捉词义和上下文信息
- nmap与masscan的简单使用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功