IZAAC_BASE - reverse proxy
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K
2023-11-12 19:56:00 +01:00
parent 029ce6e214
commit 415efa917f
3 changed files with 27 additions and 25 deletions

View File

@@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -167,6 +169,7 @@ AUTH_USER_MODEL = "core.MyUser"
# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
@@ -181,6 +184,15 @@ USE_TZ = True
STATIC_URL = "static/"
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'staticfiles')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field