Compare commits

...

2 Commits

Author SHA1 Message Date
Gesche 39a877ad10 redirect from start page to writing/ 2021-05-11 22:52:00 +02:00
Gesche 219f6759be gitignore: fix ignore 2021-05-11 22:42:33 +02:00
3 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
*.sqlite3
*.idea
/stories/stories/settings.py
stories/settings.py

View File

@ -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')
]

5
stories/views.py Normal file
View File

@ -0,0 +1,5 @@
from django.views.generic import RedirectView
class IndexRedirectView(RedirectView):
pattern_name = 'writing:index'