From: Guillaume Pellerin Date: Tue, 14 Jun 2022 13:43:20 +0000 (+0200) Subject: fix media url, add cookie domain, fix collecstatic X-Git-Tag: 2.8.1-pro~113^2^2~9^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f36c5d9943a2098af4f491095b47efec78c85f4f;p=teleforma.git fix media url, add cookie domain, fix collecstatic --- diff --git a/app/settings.py b/app/settings.py index e2b52826..296b7755 100644 --- a/app/settings.py +++ b/app/settings.py @@ -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 diff --git a/app/wsgi.sh b/app/wsgi.sh index 417e0e7b..7521b4f8 100755 --- a/app/wsgi.sh +++ b/app/wsgi.sh @@ -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