Add urlconfs for comic
This commit is contained in:
		
					parent
					
						
							
								3f4156ed8e
							
						
					
				
			
			
				commit
				
					
						b218ee1662
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -11,6 +11,7 @@ from hosting.views import ( | |||
|     RailsHostingView, DjangoHostingView, NodeJSHostingView | ||||
| ) | ||||
| from membership import urls as membership_urls | ||||
| from ungleich import views as ungleich_views | ||||
| from ungleich_page.views import LandingView | ||||
| from django.views.generic import RedirectView | ||||
| from django.core.urlresolvers import reverse_lazy | ||||
|  | @ -60,6 +61,13 @@ urlpatterns += i18n_patterns( | |||
|                 url=reverse_lazy('ungleich:post-list') | ||||
|             ), 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'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS | ||||
|         else LandingView.as_view()), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue