Commit c21ba826 authored by fred's avatar fred
Browse files

urls: load URLs from combo plugins, remove neverused local_urls.py

parent a7d421d9
from django.conf.urls import include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import RedirectView
from django.urls import reverse_lazy
from combo import plugins as combo_plugins
from . import search
from . import views
......@@ -58,17 +61,7 @@ urlpatterns = [
url(r'^__webstats/', include(webstats_urlpatterns)),
]
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = combo_plugins.register_plugins_urls(urlpatterns)
urlpatterns += staticfiles_urlpatterns()
from django.conf.urls.static import static
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns.append(url(r'', include('combo.public.urls')))
try:
from local_urls import *
except ImportError as e:
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment