Skip to content
Snippets Groups Projects

Resolve "Apps should be able to register URLs for API stuff which are not mounted under /django/"

All threads resolved!
+ 6
0
@@ -417,6 +417,12 @@ for app_config in apps.app_configs.values():
# Ignore exception as app just has no URLs
pass # noqa
try:
urlpatterns.append(path(f"app/{app_config.label}/", include(f"{app_config.name}.api_urls")))
except ModuleNotFoundError:
# Ignore exception as app just has no URLs
pass # noqa
urlpatterns.append(
re_path(
r"^(?P<url>.*)/$", TemplateView.as_view(template_name="core/vue_index.html"), name="vue_app"
Loading