add root view
This commit is contained in:
parent
e85c90e010
commit
148cbbbaee
2 changed files with 9 additions and 3 deletions
|
|
@ -52,3 +52,8 @@ class LogoutView(View):
|
|||
messages.success(request, "Logout successful")
|
||||
return redirect('login')
|
||||
|
||||
|
||||
from django.shortcuts import render
|
||||
|
||||
def index(request):
|
||||
return render(request, 'pages/index.html')
|
||||
|
|
@ -16,8 +16,9 @@ Including another URLconf
|
|||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
|
||||
from account.views import index
|
||||
urlpatterns = [
|
||||
path('', index, name='home'), # Home page URL
|
||||
path('account/', include('account.urls')), # Include the URLs from the account app
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue