Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
e816f318
Commit
e816f318
authored
Dec 14, 2013
by
Jean Michel Rouly
Browse files
Added basic views.
parent
92fbff47
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
e816f318
from
django.shortcuts
import
render
from
go.models
import
URL
from
django.contrib.auth.models
import
User
from
django.shortcuts
import
render
,
get_object_or_404
,
redirect
# Create your views here.
# Homepage view.
def
index
(
request
):
return
render
(
request
,
'index.html'
,
{
},
)
# About page, static.
def
about
(
request
):
return
render
(
request
,
'about.html'
,
{
},
)
Write
Preview
Markdown
is supported
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