1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 15:32:22 +00:00

Define BASE_DIR in development.py

This commit is contained in:
Alexandre Iooss 2020-08-09 19:36:11 +02:00
parent 31f4105c9a
commit d73f7c31a1

View File

@ -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 = {