1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- # coding=utf-8
- from base import *
- # redis配置
- CACHES = {
- 'default': {
- 'BACKEND': 'django_redis.cache.RedisCache',
- 'LOCATION': 'redis://127.0.0.1:6379/0',
- "OPTIONS": {
- "CLIENT_CLASS": "django_redis.client.default.DefaultClient",
- },
- },
- }
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql',
- 'NAME': 'workflow',
- 'USER': 'tedcaos',
- 'PASSWORD': 'tedcaos123!@#',
- 'HOST': '172.17.22.226',
- 'PORT': '3306',
- }
- }
- # 验证码字体库位置
- FONT_PATH = os.path.join(BASE_DIR, "../static/font", "consola.ttf")
- AUTHENTICATION_BACKENDS = [
- "account.cauth.AccountManage",
- ]
- # session 过期设置
- SESSION_COOKIE_AGE = 60 * 30
- SESSION_SAVE_EVERY_REQUEST = True
- SESSION_COOKIE_HTTPONLY = False
- LOGGING = {
- 'version': 1,
- 'disable_existing_loggers': False,
- 'formatters': {
- 'standard': {
- 'format': '%(asctime)s [%(name)s:%(lineno)d] [%(module)s:%(funcName)s] [%(levelname)s]- %(message)s'
- }
- },
- 'handlers': {
- 'console': {
- 'class': 'logging.StreamHandler',
- 'level': 'INFO',
- 'formatter': 'standard'
- },
- },
- 'loggers': {
- '': {
- 'handlers': ['console'],
- 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
- }
- },
- }
- HOST = "http://caos.tederen.com"
- HOST = "http://fover.tederen.com"
- PROJECT_NAME = u"期刊小程序"
|