From 01c96ade9629f7af46c37fbd921d58579fa2c04d Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 19 Jul 2012 15:42:10 +0200 Subject: [PATCH] utilise settings.SITE_URL pour les adresses abolues --- local_settings.py.example | 3 +++ polynum/settings.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/local_settings.py.example b/local_settings.py.example index c29e52e..32c7346 100644 --- a/local_settings.py.example +++ b/local_settings.py.example @@ -24,6 +24,9 @@ DATABASES = { # } #} +# The default site URL +SITE_URL = 'https://polynum.univ.fr' + # # Upload directory (polynum must have read+write permissions on it) # diff --git a/polynum/settings.py b/polynum/settings.py index 658c55b..a85fcc5 100644 --- a/polynum/settings.py +++ b/polynum/settings.py @@ -41,6 +41,8 @@ LANGUAGE_CODE = 'fr-fr' SITE_ID = 1 +SITE_URL = 'http://polynum.example.com' + # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True