mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
28 lines
475 B
Python
28 lines
475 B
Python
# 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 = ["*"]
|
|
|
|
DATA_DIR = f"{BASE_DIR}/data"
|