"""
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '13)2k1ohm6h44yq+cv&kx_8_nm7ds4vr$ib2+gl8r-&bxma=21'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'news.apps.NewsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
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 = 'blog.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'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 = 'blog.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Password validation
# https://docs.djangoproject.com/en/1.11/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/1.11/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
´úÂëʾÀý.zip (466个子文件)
student1.data 92B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.gitignore 47B
index.html 235B
detail.html 60B
´úÂëʾÀý.iml 441B
student1.json 55B
settings.py 3KB
14.3.3.py 2KB
14.2.4.py 1KB
14.2.3.py 1KB
12.2.8.py 1KB
12.2.6.py 1KB
12.2.4.py 1KB
14.2.2.py 1KB
14.3.1.py 1KB
15.2.7.py 1KB
12.2.2.py 1015B
12.2.3.py 1010B
14.2.1.py 964B
12.3.8.py 960B
18.5.2.py 912B
12.2.5.py 908B
14.3.2.py 863B
16.3.8.py 863B
16.5.2.py 840B
urls.py 834B
11.6.2.py 831B
16.5.1.py 826B
manage.py 824B
12.2.1.py 777B
13.3.4.py 767B
18.2.5.py 740B
18.2.6.py 734B
0001_initial.py 724B
18.3.1.py 715B
18.2.2.py 701B
15.2.6.py 698B
18.5.1.py 697B
18.2.4.py 695B
12.3.7.py 678B
18.2.3.py 665B
13.3.3.py 663B
12.5.1.py 643B
4.4.9.py 639B
4.1.17.py 638B
15.2.5.py 635B
15.2.2.py 632B
7.2.8.py 629B
13.3.5.py 615B
16.3.5.py 614B
12.5.3.py 587B
6.3.8.py 587B
12.5.4.py 569B
13.5.3.py 566B
11.4.3.py 566B
12.5.2.py 560B
19.3.14.py 547B
12.3.5.py 530B
16.7.1.py 492B
13.3.7.py 490B
13.5.2.py 486B
11.4.2.py 486B
13.5.1.py 485B
11.4.1.py 485B
19.3.12.py 479B
7.1.1.py 478B
12.3.6.py 449B
19.3.15.py 444B
views.py 442B
7.3.4.py 439B
16.3.4.py 432B
19.3.13.py 421B
18.2.1.py 408B
wsgi.py 402B
10.4.3.py 402B
6.5.2.py 398B
13.5.14.py 396B
8.3.3.py 394B
10.4.4.py 393B
7.3.7.py 389B
12.3.3.py 387B
13.5.4.py 384B
4.1.15.py 382B
13.5.9.py 376B
13.5.5.py 367B
4.1.11.py 363B
11.6.1.py 362B
13.5.7.py 358B
4.1.8.py 357B
4.1.9.py 357B
7.3.8.py 356B
19.3.10.py 351B
13.5.10.py 348B
12.3.4.py 347B
8.7.2.py 345B
11.3.21.py 337B
19.5.2.py 335B
共 466 条
- 1
- 2
- 3
- 4
- 5
资源评论
德常
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功