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
23098ff9
Commit
23098ff9
authored
Dec 14, 2013
by
Jean Michel Rouly
Browse files
Added about, homepage urls.
parent
e816f318
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/settings/urls.py
View file @
23098ff9
...
...
@@ -4,9 +4,22 @@ from django.contrib import admin
admin
.
autodiscover
()
urlpatterns
=
patterns
(
'go.views'
,
# Examples:
# url(r'^$', 'go.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# / - Homepage url.
url
(
r
'^$'
,
'index'
,
name
=
'homepage'
),
# /about - About page.
url
(
r
'^about/?$'
,
'about'
,
name
=
'about'
),
# /admin - Administrator interface.
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
)
urlpatterns
+=
patterns
(
'django.contrib.auth.views'
,
# Auth pages
url
(
r
'^login$'
,
'login'
,
{
'template_name'
:
'login.html'
},
name
=
'website_login'
),
url
(
r
'^logout$'
,
'logout'
,
{
'next_page'
:
'/'
},
name
=
'website_logout'
),
)
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