mirror of
https://github.com/QingdaoU/OpenVJ.git
synced 2025-01-16 01:13:36 +00:00
29 lines
623 B
Python
29 lines
623 B
Python
# coding=utf-8
|
|
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__)))
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
# Database
|
|
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
}
|
|
}
|
|
|
|
REDIS_QUEUE = {
|
|
"host": "127.0.0.1",
|
|
"port": 6379,
|
|
"db": 3,
|
|
"password": ":" + os.environ["REDIS_PASSWORD"] + "@"
|
|
} |