]> git.parisson.com Git - teleforma.git/commitdiff
fix media url, add cookie domain, fix collecstatic
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 14 Jun 2022 13:43:20 +0000 (15:43 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 14 Jun 2022 13:43:20 +0000 (15:43 +0200)
app/settings.py
app/wsgi.sh

index e2b52826db69a7f5074eb6ad84f2d8478038073e..296b7755c012913ffcf03f09cfc42e8401a90000 100644 (file)
@@ -106,7 +106,7 @@ MEDIA_ROOT = '/srv/media/'
 # trailing slash if there is a path component (optional in other cases).
 # Examples: "http://media.lawrence.com", "http://example.com/media/"
 #MEDIA_URL = 'http://pre-barreau.com/archives/'
-MEDIA_URL = 'https://e-learning.pro-barreau.com/media/'
+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
@@ -268,6 +268,8 @@ SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
 UNIQUE_SESSION_WHITELIST = (1, 2042)
 SESSION_EXPIRE_AT_BROWSER_CLOSE = False
 
+SESSION_COOKIE_DOMAIN=".pro-barreau.com"
+
 # RECAPTCHA_PUBLIC_KEY = '6Ldq5DgbAAAAADkKg19JXlhx6F1XUQDsrXfXqSP6'
 # RECAPTCHA_PRIVATE_KEY = '6Ldq5DgbAAAAAOVDOeF2kH8i2e2VSNHpqlinbpAJ'
 # RECAPTCHA_REQUIRED_SCORE = 0.85
index 417e0e7bab8fabb09d2ceafca84ae0246bcaea2d..7521b4f83ad33ad8bb47c08d1f624461add2f66b 100755 (executable)
@@ -41,7 +41,7 @@ else
     # watchmedo shell-command --patterns="$patterns" --recursive \
     #     --command='python '$manage' collectstatic --noinput' $app &
 
-    #python $manage collectstatic --noinput
+    python $manage collectstatic --noinput --ignore Pre-Barreau/*
 
     chown -R www-data: $debug_log