clear url caches

This commit is contained in:
Matthias 2021-11-15 02:05:57 +01:00
parent 87edbf7c33
commit 81335ee1d5
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -9,6 +9,7 @@ from django.apps import AppConfig, apps
from django.conf import settings
from django.db.utils import OperationalError, ProgrammingError
from django.conf.urls import url, include
from django.urls import clear_url_caches
from django.contrib import admin
try:
@ -237,6 +238,7 @@ class PluginAppConfig(AppConfig):
elif a.app_name == 'plugin':
integ_urls = get_integration_urls()
urlpatterns[index] = url(f'^{settings.PLUGIN_URL}/', include((integ_urls, 'plugin')))
clear_url_caches()
def _reload_apps(self, populate: bool = False):
if populate: