text: """
  Django settings for django_test1 project.
  
  Generated by 'django-admin startproject' using Django 2.1.1.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.1/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.1/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/2.1/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = '!9&p%+7d86c4tr$1jn#hl@j-en^!)y21*&f^ck0b2md*vs*c(h'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  # Application definition
  
  INSTALLED_APPS = [
  	'django.contrib.admin',  # 管理站点
  	'django.contrib.auth',  # 认证系统
  	'django.contrib.contenttypes',  # 内容管理的框架
  	'django.contrib.sessions',  # 用于session会话
  	'django.contrib.messages',  # 消息传递框架
  	'django.contrib.staticfiles',  # 收集每个应用（和任何你指定的地方）的静态文件到一个统一指定的地方，并且易于访问
  	'app_django_test.apps.AppDjangoTestConfig',  # 额外增加的安装App
  	'app_polls.apps.AppPollsConfig',  # 添加指向app_polls的配置文件的连接
  	'app_login.apps.AppLoginConfig',  # 全局注册app_login向django表名新的app上线了
  ]
  
  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 = 'django_test1.urls'
  
  TEMPLATES = [
  	{
  		'BACKEND': 'django.template.backends.django.DjangoTemplates',
  		'DIRS': [os.path.join(BASE_DIR, 'templates')],  # 已经将模板文件的路径添加至django,从而将数据和视图分离,以符合MVC的思想
  		'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 = 'django_test1.wsgi.application'
  
  # Database
  # https://docs.djangoproject.com/en/2.1/ref/settings/#databases
  # DATABASES = {
  #     'default': {
  #         'ENGINE': 'django.db.backends.sqlite3',
  #         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  #     }
  # }
  # 重新设置数据库
  DATABASES = {
  	'default': {
  		'ENGINE': 'django.db.backends.mysql',
  		'NAME': 'django_test1',
  		'USER': 'tonyliu',
  		'PASSWORD': 'liu941103',
  		'HOST': '',
  		'PORT': '3306',
  	}
  }
  
  # Password validation
  # https://docs.djangoproject.com/en/2.1/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/2.1/topics/i18n/
  
  # LANGUAGE_CODE = 'en-us'
  LANGUAGE_CODE = 'zh-Hans'
  
  # TIME_ZONE = 'UTC'
  TIME_ZONE = 'Asia/Shanghai'
  
  USE_I18N = True
  
  USE_L10N = True
  
  # USE_TZ = True
  USE_TZ = False
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.1/howto/static-files/
  # 静态文件目录
  STATIC_URL = '/static/'
  # 增加静态文件目录
  STATICFILES_DIRS = (
  	os.path.join(BASE_DIR, "static"),
  )
  