|
|
|
@ -25,7 +25,7 @@ SECRET_KEY = 'q63j-o65lzp68yb$%gxz!w@74r@9xubd(66e_@+cfk$ornl(*%'
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = []
|
|
|
|
|
ALLOWED_HOSTS = ["*"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
@ -37,6 +37,7 @@ INSTALLED_APPS = [
|
|
|
|
|
'django.contrib.sessions',
|
|
|
|
|
'django.contrib.messages',
|
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
|
'API'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
|
@ -75,8 +76,12 @@ WSGI_APPLICATION = 'EduSystemServer.wsgi.application'
|
|
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
|
'default': {
|
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
|
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
|
|
|
'NAME': "edu_sys",
|
|
|
|
|
'USER': "root",
|
|
|
|
|
'PASSWORD': "cyh0110",
|
|
|
|
|
'HOST': "localhost",
|
|
|
|
|
'PORT': 3306,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -103,15 +108,15 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
|
# Internationalization
|
|
|
|
|
# https://docs.djangoproject.com/en/2.2/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)
|
|
|
|
|