diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/base_urls.py | 7 |
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) |