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
1 changed files with 3 additions and 0 deletions

View File

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