添加教程的API
This commit is contained in:
@@ -6,12 +6,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"HOST": get_env("POSTGRES_HOST", "127.0.0.1"),
|
||||
"PORT": get_env("POSTGRES_PORT", "5432"),
|
||||
"NAME": get_env("POSTGRES_DB", "onlinejudge"),
|
||||
"USER": get_env("POSTGRES_USER", "onlinejudge"),
|
||||
"PASSWORD": get_env("POSTGRES_PASSWORD", "onlinejudge"),
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user