From: Guillaume Pellerin Date: Thu, 9 Nov 2023 10:56:33 +0000 (+0100) Subject: fix media root and url X-Git-Tag: 2.8.1-ae~32^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3db485d67f3ed023d62bd10fb4d04267770b4109;p=teleforma.git fix media root and url --- diff --git a/app/settings.py b/app/settings.py index b5313483..d00b0aa1 100644 --- a/app/settings.py +++ b/app/settings.py @@ -103,7 +103,7 @@ USE_L10N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media/') +MEDIA_ROOT = "/srv/media/" if not os.path.exists(MEDIA_ROOT): os.mkdir(MEDIA_ROOT) @@ -111,7 +111,7 @@ if not os.path.exists(MEDIA_ROOT): # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = 'http://localhost:8040/' +MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files