From 2c7da66570999dcd21f11f976dc6ec27d820f45c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Oct 2024 19:28:06 -0700 Subject: Use @ when accessing variables in templates Access without the @ symbol is the older method and is discouraged. --- modules/apache/templates/django.wsgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/apache/templates/django.wsgi') diff --git a/modules/apache/templates/django.wsgi b/modules/apache/templates/django.wsgi index aa0b82c8..f48dae04 100644 --- a/modules/apache/templates/django.wsgi +++ b/modules/apache/templates/django.wsgi @@ -1,13 +1,13 @@ #!/usr/bin/python import os, sys <%- for m in module_path -%> -path = '<%= m %>' +path = '<%= @m %>' if path not in sys.path: sys.path.append(path) <%- end -%> <%- if django_module -%> -os.environ['DJANGO_SETTINGS_MODULE'] = '<%= django_module %>.settings' +os.environ['DJANGO_SETTINGS_MODULE'] = '<%= @django_module %>.settings' <%- else -%> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' <%- end -%> -- cgit v1.2.1