temporarily redirect / to /profiles/
This commit is contained in:
parent
5f3b9ef166
commit
0a477144b4
|
|
@ -14,9 +14,13 @@ Including another URLconf
|
||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from django.shortcuts import redirect
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('profiles/', include('profiles.urls')),
|
path('profiles/', include('profiles.urls')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
|
|
||||||
|
# TODO temporarily: just redirect / to /profiles/
|
||||||
|
path('', lambda request: redirect('profiles/', permanent=False)),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue