From a911e5a39660ac1ddf72be790db32c28dc2038a0 Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Mon, 12 Jun 2023 18:36:03 +0200 Subject: [PATCH] Allow to pass STATIC_URL as environment variable --- eoxserver/instance_template/project_name/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoxserver/instance_template/project_name/settings.py b/eoxserver/instance_template/project_name/settings.py index 7c5cf6c70..5c0471151 100644 --- a/eoxserver/instance_template/project_name/settings.py +++ b/eoxserver/instance_template/project_name/settings.py @@ -130,7 +130,7 @@ # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/" -STATIC_URL = '/{{ project_name }}_static/' +STATIC_URL = os.environ.get('STATIC_URL', '/{{ project_name }}_static/') # Additional locations of static files STATICFILES_DIRS = (