diff options
Diffstat (limited to 'config/base_urls.py')
-rw-r--r-- | config/base_urls.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index e212e29..3c22638 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -3,21 +3,17 @@ from django.contrib import admin from django.conf.urls.static import static from django.conf import settings from django.contrib.sitemaps.views import sitemap -from django.views.generic import TemplateView from pages.views import PageDetailView from jrnl.models import BlogSitemap from jrnl.views import HomepageList from locations.models import WritingbyCountrySitemap -from locations.views import map_data from photos.models import PhotoGallerySitemap from src.models import SrcSitemap from figments.models import FigmentSitemap from projects.models.base import ProjectSitemap import builder.views import utils.views -from utils.views import TagAutocomplete -from sightings.views import APAutocomplete from locations.views import MapDataList from income.views import MonthlyInvoiceView, DownloadMonthlyInvoiceView @@ -29,12 +25,11 @@ sitemaps = { 'writingbyloc': WritingbyCountrySitemap, 'photos': PhotoGallerySitemap, 'projects': ProjectSitemap, - 'src': SrcSitemap + 'src': SrcSitemap, + 'figments': FigmentSitemap } urlpatterns = [ - path(r'tag-autocomplete/', TagAutocomplete.as_view(), name='tag-autocomplete'), - path(r'ap-autocomplete/', APAutocomplete.as_view(), name='ap-autocomplete'), re_path(r'^admin/build/.*', builder.views.do_build), path(r'admin/data/', include('utils.urls')), path(r'admin/income/invoice/monthlyview/<str:slug>/invoice/', DownloadMonthlyInvoiceView.as_view(), name="download-invoice"), @@ -67,5 +62,9 @@ urlpatterns = [ if settings.DEBUG: import debug_toolbar urlpatterns = [ - path(r'__debug__/', include(debug_toolbar.urls)), + path('__debug__/', include(debug_toolbar.urls)), + + # For django versions before 2.0: + # url(r'^__debug__/', include(debug_toolbar.urls)), + ] + urlpatterns |