summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
committerluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
commit6e8b62d8c38f6ca366f240ea45ad738ebfd62943 (patch)
treeb8c695cdd5c7f1f7729fa6750ed49c1eb2eae3e8 /config
parent09abece4982e8dceabe1dd8d678639205a4a6208 (diff)
abstracted breadcrumbs into seperate template
Diffstat (limited to 'config')
-rw-r--r--config/base_urls.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/base_urls.py b/config/base_urls.py
index f77a8c1..ed73844 100644
--- a/config/base_urls.py
+++ b/config/base_urls.py
@@ -5,7 +5,7 @@ from django.conf import settings
from django.contrib.sitemaps.views import sitemap
from django.views.generic.base import RedirectView
-from pages.views import PageDetailView
+from pages.views import PageDetailView, PageDetailTXTView
from jrnl.models import BlogSitemap
from fieldnotes.models import FieldNoteSitemap
from jrnl.views import HomepageList
@@ -47,6 +47,8 @@ urlpatterns = [
path(r'jrnl/', include('jrnl.urls')),
path(r'projects/', include('projects.urls')),
path(r'topics/', include('taxonomy.urls')),
+ path(r'walk/', include('locations.walk_urls')),
+ path(r'walks/', include('locations.walk_urls')),
path(r'locations/', include('locations.urls')),
path(r'expenses/', include('expenses.urls', namespace='expenses')),
path(r'photos/', include('photos.urls')),
@@ -69,7 +71,8 @@ urlpatterns = [
path(r'map/', include('locations.urls', namespace='map')),
path(r'', HomepageList.as_view(), name="homepage"),
path(r'comments/', include('django_comments.urls')),
- path(r'<slug>', PageDetailView.as_view()),
+ path(r'<slug>.txt', PageDetailTXTView.as_view()),
+ path(r'<slug>', include('pages.urls', namespace='pages')),
path(r'<path>/<slug>/', PageDetailView.as_view()),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)