Add urlconfs for comic

This commit is contained in:
PCoder 2018-04-17 11:47:56 +02:00
parent 3f4156ed8e
commit b218ee1662

View file

@ -11,6 +11,7 @@ from hosting.views import (
RailsHostingView, DjangoHostingView, NodeJSHostingView RailsHostingView, DjangoHostingView, NodeJSHostingView
) )
from membership import urls as membership_urls from membership import urls as membership_urls
from ungleich import views as ungleich_views
from ungleich_page.views import LandingView from ungleich_page.views import LandingView
from django.views.generic import RedirectView from django.views.generic import RedirectView
from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse_lazy
@ -60,6 +61,13 @@ urlpatterns += i18n_patterns(
url=reverse_lazy('ungleich:post-list') url=reverse_lazy('ungleich:post-list')
), name='blog_list_view' ), name='blog_list_view'
), ),
url(r'^comic/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$',
RedirectView.as_view(pattern_name='ungleich:post-detail')),
url(r'^comic/$',
ungleich_views.PostListViewUngleich.as_view(
tags='comic'
),
name='blog_list_view'),
url(r'^cms/', include('cms.urls')), url(r'^cms/', include('cms.urls')),
url(r'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS url(r'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS
else LandingView.as_view()), else LandingView.as_view()),