Compare commits
2 Commits
621fef14f5
...
39a877ad10
Author | SHA1 | Date |
---|---|---|
Gesche | 39a877ad10 | |
Gesche | 219f6759be |
|
@ -1,3 +1,3 @@
|
|||
*.sqlite3
|
||||
*.idea
|
||||
/stories/stories/settings.py
|
||||
stories/settings.py
|
||||
|
|
|
@ -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