Fix URL inclusion

Closes #34.
This commit is contained in:
Dominik George
2020-01-26 20:49:26 +01:00
committed by GitHub
parent 3c36673a21
commit 67cf917a08

View File

@@ -2,8 +2,12 @@
from django.conf import settings from django.conf import settings
from django.shortcuts import resolve_url from django.shortcuts import resolve_url
from django.urls import get_script_prefix from django.urls import get_script_prefix
from django.utils.functional import lazy
import os import os
# Lazy-evaluate URLs so including pwa.urls in root urlconf works
resolve_url = lazy(resolve_url, str)
# Get script prefix for apps not mounted under / # Get script prefix for apps not mounted under /
_PWA_SCRIPT_PREFIX = get_script_prefix() _PWA_SCRIPT_PREFIX = get_script_prefix()