OpenVJ/openvj/local_settings.py
2016-05-03 13:26:23 +08:00

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"] + "@"
}