]> git.parisson.com Git - teleforma.git/commitdiff
fix media root and url
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 9 Nov 2023 10:56:33 +0000 (11:56 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 9 Nov 2023 10:56:33 +0000 (11:56 +0100)
app/settings.py

index b5313483fa206890fc63163a146d15d3e1bde180..d00b0aa1a4b2963ccf7af71b32b608bafc629cd4 100644 (file)
@@ -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