fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pre_collectstatic hook
[fnpdjango.git]
/
fnpdjango
/
deploy
/
templates
/
localsettings.py.template
diff --git
a/fnpdjango/deploy/templates/localsettings.py.template
b/fnpdjango/deploy/templates/localsettings.py.template
index
9a3d04d
..
f0fa8b1
100644
(file)
--- a/
fnpdjango/deploy/templates/localsettings.py.template
+++ b/
fnpdjango/deploy/templates/localsettings.py.template
@@
-18,7
+18,7
@@
DATABASES = {
SECRET_KEY = '%(secret_key)s'
ALLOWED_HOSTS = (
SECRET_KEY = '%(secret_key)s'
ALLOWED_HOSTS = (
- '%(project_name).nowoczesnapolska.org.pl',
+ '%(project_name)
s
.nowoczesnapolska.org.pl',
)
PIWIK_URL = 'http://piwik.nowoczesnapolska.org.pl/'
)
PIWIK_URL = 'http://piwik.nowoczesnapolska.org.pl/'
@@
-27,5
+27,7
@@
PIWIK_TOKEN = ''
MEDIA_ROOT = '%(app_path)s/media/'
STATIC_ROOT = '%(app_path)s/static/'
MEDIA_ROOT = '%(app_path)s/media/'
STATIC_ROOT = '%(app_path)s/static/'
-FNPDJANGO_REALIP = False
-FNPDJANGO_XACCEL = False
+
+# Those should be set to True if you are behind Nginx.
+FNPDJANGO_REALIP = True
+FNPDJANGO_XACCEL = True