From 4b3f15e68a5601c350cc605794eea20050e863fa Mon Sep 17 00:00:00 2001 From: lxf Date: Sun, 20 Dec 2020 13:52:56 -0500 Subject: fixed some things with guides --- config/base_urls.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/base_urls.py b/config/base_urls.py index e3cfa78..2260016 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -48,7 +48,12 @@ urlpatterns = [ path(r'locations/', include('locations.urls')), #path(r'expenses/', include('expenses.urls', namespace='expenses')), path(r'photos/', include('media.urls')), - path(r'guide/', include('posts.urls.guide_urls', namespace='guide')), + path(r'review/', include('posts.urls.review_urls')), + re_path(r'^review/$', RedirectView.as_view(url='/reviews/')), + path(r'reviews/', include('posts.urls.review_urls', namespace='review-list')), + path(r'guide/', include('posts.urls.guide_urls')), + re_path(r'^guide/$', RedirectView.as_view(url='/guides/')), + path(r'guides/', include('posts.urls.guide_urls', namespace='guide-list')), path(r'essay/', include('posts.urls.essay_urls')), re_path(r'^essay/$', RedirectView.as_view(url='/essays/')), path(r'essays/', include('posts.urls.essay_urls', namespace='essay-list')), -- cgit v1.2.3-70-g09d2