From 0934ea71d830c446fa0b0bcca1a395c3dc78f9e9 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 28 Jan 2025 11:01:14 +0100 Subject: [PATCH] updated settings template from server to reflect /2025/call --- .gitignore | 1 + call2025/settings.template.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f39e496..5aab27b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ db/ media/ venv/ call2025/settings.py +*~ diff --git a/call2025/settings.template.py b/call2025/settings.template.py index 6539e7a..bf03b42 100644 --- a/call2025/settings.template.py +++ b/call2025/settings.template.py @@ -117,10 +117,10 @@ USE_TZ = True # https://docs.djangoproject.com/en/5.1/howto/static-files/ # -DEPLOY = False +DEPLOY = True if DEPLOY: - STATIC_URL = '/call/static/' + STATIC_URL = '/2025/call/static/' STATIC_ROOT = "/var/www/wsgi/call2025/static/" else: STATIC_URL = 'static/' @@ -131,7 +131,7 @@ else: DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' if DEPLOY: - MEDIA_URL = '/call/media/' + MEDIA_URL = '/2025/call/media/' MEDIA_ROOT = "/var/www/wsgi/call2025/media/" else: MEDIA_ROOT = 'media/'