Merge pull request #35 from Natureshadow/patch-1

Fix URL inclusion
This commit is contained in:
Silvio Luis
2020-02-03 14:12:03 -03:00
committed by GitHub

View File

@@ -2,8 +2,12 @@
from django.conf import settings
from django.shortcuts import resolve_url
from django.urls import get_script_prefix
from django.utils.functional import lazy
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 /
_PWA_SCRIPT_PREFIX = get_script_prefix()