Sfoglia il codice sorgente

Feature: Support local_settings as optional settings

pull/131/head
winkidney 6 anni fa
parent
commit
2278d6a552
2 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +5
    -0
      pinry/settings/development.py
  2. +5
    -0
      pinry/settings/docker.py

+ 5
- 0
pinry/settings/development.py Vedi File

@@ -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 Vedi File

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

try:
from .local_settings import *
except ImportError:
pass

Caricamento…
Annulla
Salva