redirect from start page to writing/
This commit is contained in:
		
							parent
							
								
									219f6759be
								
							
						
					
					
						commit
						39a877ad10
					
				|  | @ -16,8 +16,11 @@ Including another URLconf | |||
| from django.contrib import admin | ||||
| from django.urls import path, include | ||||
| 
 | ||||
| from stories.views import IndexRedirectView | ||||
| 
 | ||||
| urlpatterns = [ | ||||
|     path('writing/', include('writingtogether.urls')), | ||||
|     path('accounts/', include('django.contrib.auth.urls')), | ||||
|     path('admin/', admin.site.urls), | ||||
|     path('', IndexRedirectView.as_view(), name='main_index') | ||||
| ] | ||||
|  |  | |||
|  | @ -0,0 +1,5 @@ | |||
| from django.views.generic import RedirectView | ||||
| 
 | ||||
| 
 | ||||
| class IndexRedirectView(RedirectView): | ||||
|     pattern_name = 'writing:index' | ||||
		Loading…
	
		Reference in New Issue