瀏覽代碼

Feature: Support local_settings as optional settings

pull/131/head
winkidney 6 年之前
父節點
當前提交
2278d6a552
共有 2 個檔案被更改,包括 10 行新增0 行删除
  1. +5
    -0
      pinry/settings/development.py
  2. +5
    -0
      pinry/settings/docker.py

+ 5
- 0
pinry/settings/development.py 查看文件

@@ -19,3 +19,8 @@ DATABASES = {
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}

try:
from .local_settings import *
except ImportError:
pass

+ 5
- 0
pinry/settings/docker.py 查看文件

@@ -22,3 +22,8 @@ DATABASES = {
'PORT': 5432,
}
}

try:
from .local_settings import *
except ImportError:
pass

Loading…
取消
儲存