aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/conf-templates
diff options
context:
space:
mode:
authorAlexis Métaireau <alexis@notmyidea.org>2018-01-14 16:52:52 +0100
committerAlexis Métaireau <alexis@notmyidea.org>2018-01-14 18:37:10 +0100
commit230eafdf58c46b983936cbf4f70b712bbddfd8c9 (patch)
treeac2a5e6de21340d1091672eff6b4ccf04114aed1 /ihatemoney/conf-templates
parent0504fd82f52317d902e85a6e448048d5ef1c58d9 (diff)
downloadihatemoney-mirror-230eafdf58c46b983936cbf4f70b712bbddfd8c9.zip
ihatemoney-mirror-230eafdf58c46b983936cbf4f70b712bbddfd8c9.tar.gz
ihatemoney-mirror-230eafdf58c46b983936cbf4f70b712bbddfd8c9.tar.bz2
Use Jinja2 strict rendering.
For this I had to create an Jinja2 explicit environment, so I put a function in `ihatemoney.utils.create_jinja2_env(strict_rendering=False)`. When using this environment and if `strict_rendering` is activated, templates using undefined variables will now error out rather than failing silently.
Diffstat (limited to 'ihatemoney/conf-templates')
-rw-r--r--ihatemoney/conf-templates/apache-vhost.conf.j23
1 files changed, 1 insertions, 2 deletions
diff --git a/ihatemoney/conf-templates/apache-vhost.conf.j2 b/ihatemoney/conf-templates/apache-vhost.conf.j2
index 3246d27..0527d31 100644
--- a/ihatemoney/conf-templates/apache-vhost.conf.j2
+++ b/ihatemoney/conf-templates/apache-vhost.conf.j2
@@ -1,8 +1,7 @@
<VirtualHost *:80>
ServerAdmin admin@example.com # CUSTOMIZE
ServerName ihatemoney.example.com # CUSTOMIZE
-
- WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path={{ pkg_path }} {% if venv_path %}python-home={{ venv_path }}{% endif %}
+ WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path={{ pkg_path }} {% if bin_path %}python-home={{ bin_path }}{% endif %}
WSGIScriptAlias / {{ pkg_path }}/wsgi.py
WSGIPassAuthorization On