diff options
author | Dan Fandrich <danf@mageia.org> | 2024-10-05 16:09:13 -0700 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-10-05 16:39:54 -0700 |
commit | a7797c331e1fa86bdef5c49d6870d822dc591217 (patch) | |
tree | ab13b66e6f59511f98c5973ecbff36af876b57cc /modules/apache/templates/django.wsgi | |
parent | 9d1a749d073a5997cd435ac51c5c65eb050b2af5 (diff) | |
download | puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.gz puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.bz2 puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.xz puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.zip |
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
This take leaves alone accesses of variables that are defined within the
template, which don't seem to allow an @.
This batch of changes is for templates related to web sites.
Diffstat (limited to 'modules/apache/templates/django.wsgi')
-rw-r--r-- | modules/apache/templates/django.wsgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/apache/templates/django.wsgi b/modules/apache/templates/django.wsgi index aa0b82c8..2188e1e7 100644 --- a/modules/apache/templates/django.wsgi +++ b/modules/apache/templates/django.wsgi @@ -6,8 +6,8 @@ if path not in sys.path: sys.path.append(path) <%- end -%> -<%- if django_module -%> -os.environ['DJANGO_SETTINGS_MODULE'] = '<%= django_module %>.settings' +<%- if @django_module -%> +os.environ['DJANGO_SETTINGS_MODULE'] = '<%= @django_module %>.settings' <%- else -%> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' <%- end -%> |