diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index 5efef5ea..8440de9a 100644 --- a/pandora/config.0xdb.jsonc +++ b/pandora/config.0xdb.jsonc @@ -1009,7 +1009,7 @@ { "id": "tags", "title": "Tags", - "canAddAnnotations": {"member": true, "firend": true, "staff": true, "admin": true}, + "canAddAnnotations": {"member": true, "staff": true, "admin": true}, "item": "Tag", "autocomplete": true, "overlap": true, diff --git a/pandora/settings.py b/pandora/settings.py index af028331..69a76e0b 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -278,7 +278,6 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 32 * 1024 * 1024 #you can ignore things below this line #========================================================================= LOCAL_APPS = [] -LOCAL_URLPATTERNS = [] #load installation specific settings from local_settings.py try: from local_settings import * @@ -305,3 +304,4 @@ except NameError: INSTALLED_APPS = tuple(list(INSTALLED_APPS) + LOCAL_APPS) + diff --git a/pandora/urls.py b/pandora/urls.py index 5c7aad4d..cd241d66 100644 --- a/pandora/urls.py +++ b/pandora/urls.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import os -import importlib from django.urls import path, re_path from oxdjango.http import HttpFileResponse @@ -89,17 +88,3 @@ urlpatterns += [ path(r'', app.views.index), ] -if settings.LOCAL_URLPATTERNS: - patterns = [] - for pattern, fn in settings.LOCAL_URLPATTERNS: - if isinstnace(fn, 'str'): - m, f = fn.rsplit('.', 1) - try: - m = importlib.import_module(m) - except ImportError: - logger.error('failed to import urllib module: %s', fn, exc_info=True) - continue - fn = getattr(m, f) - patterns.append(re_path(pattern, fn)) - urlpatterns = patterns + urlpatterns -