update settings
This commit is contained in:
31
oj/dev_settings.py
Normal file
31
oj/dev_settings.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# coding=utf-8
|
||||
import os
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'HOST': '127.0.0.1',
|
||||
'PORT': 5433,
|
||||
'NAME': "onlinejudge",
|
||||
'USER': "onlinejudge",
|
||||
'PASSWORD': 'onlinejudge'
|
||||
}
|
||||
}
|
||||
|
||||
REDIS_CONF = {
|
||||
"host": "127.0.0.1",
|
||||
"port": "6379"
|
||||
}
|
||||
|
||||
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
TEST_CASE_DIR = "/tmp"
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
]
|
||||
Reference in New Issue
Block a user