mirror of https://gitlab.crans.org/bde/nk20
Define BASE_DIR in development.py
This commit is contained in:
parent
31f4105c9a
commit
d73f7c31a1
|
@ -12,6 +12,9 @@
|
|||
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
if os.getenv("DJANGO_DEV_STORE_METHOD", "sqlite") != "postgresql":
|
||||
# Use an SQLite database
|
||||
DATABASES = {
|
||||
|
|
Loading…
Reference in New Issue