Browse Source

DIV-474 - no css in PDF format of the forms when clicking on Print

pull/160/head
Mike Olund 8 years ago
parent
commit
4b33ca7577
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      edivorce/apps/core/middleware/basicauth_middleware.py

+ 4
- 0
edivorce/apps/core/middleware/basicauth_middleware.py View File

@ -27,6 +27,10 @@ class BasicAuthMiddleware(object):
if request.path.startswith(settings.FORCE_SCRIPT_NAME + 'api/'):
return None
# allow all static files
if request.path.startswith(settings.FORCE_SCRIPT_NAME[:-1] + settings.FORCE_SCRIPT_NAME + 'static/'):
return None
# check if the middleware is enabled in settings
if not settings.BASICAUTH_ENABLED:
return None


Loading…
Cancel
Save