Compare commits
No commits in common. "39a877ad10bd0af121b97202b6fb5c12e7112d24" and "621fef14f5115b30dd8dc7ddfaf277638c53f5b1" have entirely different histories.
39a877ad10
...
621fef14f5
|
@ -1,3 +1,3 @@
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
*.idea
|
*.idea
|
||||||
stories/settings.py
|
/stories/stories/settings.py
|
||||||
|
|
|
@ -16,11 +16,8 @@ Including another URLconf
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
|
|
||||||
from stories.views import IndexRedirectView
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('writing/', include('writingtogether.urls')),
|
path('writing/', include('writingtogether.urls')),
|
||||||
path('accounts/', include('django.contrib.auth.urls')),
|
path('accounts/', include('django.contrib.auth.urls')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('', IndexRedirectView.as_view(), name='main_index')
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
from django.views.generic import RedirectView
|
|
||||||
|
|
||||||
|
|
||||||
class IndexRedirectView(RedirectView):
|
|
||||||
pattern_name = 'writing:index'
|
|
Loading…
Reference in New Issue