mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Define BASE_DIR in development.py
This commit is contained in:
parent
31f4105c9a
commit
d73f7c31a1
@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
import os
|
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":
|
if os.getenv("DJANGO_DEV_STORE_METHOD", "sqlite") != "postgresql":
|
||||||
# Use an SQLite database
|
# Use an SQLite database
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
Loading…
Reference in New Issue
Block a user