Browse Source

Fix 404 errors in pdf generation on OpenShift #2

pull/172/head
Michael Olund 5 years ago
parent
commit
bb2c0e209d
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      edivorce/apps/core/views/pdf.py
  2. +2
    -1
      edivorce/settings/local.py

+ 1
- 0
edivorce/apps/core/views/pdf.py View File

@ -67,6 +67,7 @@ def __render_form(request, form_name, context):
if output_as_html:
context['css_root'] = settings.FORCE_SCRIPT_NAME[:-1]
context['image_root'] = settings.FORCE_SCRIPT_NAME[:-1]
template_name = form_name
if not form_name.startswith('form'):


+ 2
- 1
edivorce/settings/local.py View File

@ -17,7 +17,8 @@ SESSION_COOKIE_AGE = 3600
TEMPLATES[0]["OPTIONS"]["debug"] = True
WEASYPRINT_URL = 'http://localhost:5005'
WEASYPRINT_CSS_LOOPBACK = 'http://host.docker.internal:8000'
WEASYPRINT_IMAGE_LOOPBACK = 'http://host.docker.internal:8000'
WEASYPRINT_CSS_LOOPBACK = WEASYPRINT_IMAGE_LOOPBACK
DEPLOYMENT_TYPE = 'localdev'
REGISTER_URL = '#'


Loading…
Cancel
Save