Skip to content
Snippets Groups Projects
Verified Commit 9b91f38e authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Introduce BASE_URL setting

parent 36b994c2
No related branches found
No related tags found
1 merge request!689Support PDF generation without available request object
Pipeline #23868 canceled
......@@ -68,6 +68,9 @@ UWSGI_SERVE_STATIC = True
UWSGI_SERVE_MEDIA = False
ALLOWED_HOSTS = _settings.get("http.allowed_hosts", [getfqdn(), "localhost", "127.0.0.1", "[::1]"])
BASE_URL = _settings.get(
"http.base_url", "http://localhost:8000" if DEBUG else f"https://{ALLOWED_HOSTS[0]}"
)
# Application definition
INSTALLED_APPS = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment