Commit bce9229a authored by Sander Høyland's avatar Sander Høyland
Browse files

La til noen kommentarer

parent ab6a4c72
......@@ -18,5 +18,7 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
# Denne linker til startpage/urls.py
path('startpage/', include('startpage.urls')),
]
......@@ -2,6 +2,9 @@ from django.urls import path
from . import views
urlpatterns = [
# Denne linker til "home" i views.py
path('', views.home, name='startpage-home'),
# Denne linker til "login" i views.py
path('login/', views.login, name='startpage-login'),
]
\ No newline at end of file
......@@ -12,7 +12,6 @@ def home(request):
def login(request):
return render(request, 'startpage/login.html')
posts = [
{
'author': 'Sander Høyland',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment