Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ole Gabor Husebø
rodtrad
Commits
bce9229a
Commit
bce9229a
authored
Feb 18, 2020
by
Sander Høyland
Browse files
La til noen kommentarer
parent
ab6a4c72
Changes
3
Hide whitespace changes
Inline
Side-by-side
rodTraa/rodTraa/urls.py
View file @
bce9229a
...
...
@@ -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'
)),
]
rodTraa/startpage/urls.py
View file @
bce9229a
...
...
@@ -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
rodTraa/startpage/views.py
View file @
bce9229a
...
...
@@ -12,7 +12,6 @@ def home(request):
def
login
(
request
):
return
render
(
request
,
'startpage/login.html'
)
posts
=
[
{
'author'
:
'Sander Høyland'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment