|
@@ -1,10 +1,15 @@
|
|
|
-import dj_database_url
|
|
|
import os
|
|
|
import sys
|
|
|
+from pathlib import Path
|
|
|
|
|
|
+import dj_database_url
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
+PROJECT_ROOT = Path(__file__).resolve().parent
|
|
|
+BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
+sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
|
|
|
+
|
|
|
|
|
|
# Tap emus.conf if it's available
|
|
|
if os.path.exists("emus.conf"):
|
|
@@ -14,8 +19,6 @@ elif os.path.exists("/etc/emus.conf"):
|
|
|
elif os.path.exists("/usr/local/etc/emus.conf"):
|
|
|
load_dotenv("/usr/local/etc/emus.conf")
|
|
|
|
|
|
-from pathlib import Path
|
|
|
-
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
|