Skip to content
Snippets Groups Projects

Support PDF generation without available request object

Merged Jonathan Weth requested to merge feature/pdf-background into master
All threads resolved!
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
import os
from glob import glob
from socket import getfqdn
from django.utils.translation import gettext_lazy as _
@@ -66,7 +67,7 @@ UWSGI = {
UWSGI_SERVE_STATIC = True
UWSGI_SERVE_MEDIA = False
ALLOWED_HOSTS = _settings.get("http.allowed_hosts", [])
ALLOWED_HOSTS = _settings.get("http.allowed_hosts", [getfqdn(), "localhost", "127.0.0.1", "[::1]"])
# Application definition
INSTALLED_APPS = [
Loading