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 ...@@ -18,5 +18,7 @@ from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
# Denne linker til startpage/urls.py
path('startpage/', include('startpage.urls')), path('startpage/', include('startpage.urls')),
] ]
...@@ -2,6 +2,9 @@ from django.urls import path ...@@ -2,6 +2,9 @@ from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [
# Denne linker til "home" i views.py
path('', views.home, name='startpage-home'), path('', views.home, name='startpage-home'),
# Denne linker til "login" i views.py
path('login/', views.login, name='startpage-login'), path('login/', views.login, name='startpage-login'),
] ]
\ No newline at end of file
...@@ -12,7 +12,6 @@ def home(request): ...@@ -12,7 +12,6 @@ def home(request):
def login(request): def login(request):
return render(request, 'startpage/login.html') return render(request, 'startpage/login.html')
posts = [ posts = [
{ {
'author': 'Sander Høyland', '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