diff --git a/uwsgi-python/templates/secret_config.py.j2 b/uwsgi-python/templates/secret_config.py.j2 index 4fe5c96549857b61df5312e62a3283976da32ff7..20aae5bcc4ce7a5239bab38edb767a6ce3aae911 100644 --- a/uwsgi-python/templates/secret_config.py.j2 +++ b/uwsgi-python/templates/secret_config.py.j2 @@ -1 +1,6 @@ secret_key = '{{ (2**2048)|random }}' +{% if app_secret_config_keys is defined %} +{% for key in app_secret_config_keys %} +{{key}} = '{{ (2**2048)|random }}' +{% endfor %} +{% endif %}