Commit 3bcee508 authored by Daniel W Bond's avatar Daniel W Bond

404, login to urls, ldap to requirements

parent 9a62dbc5
......@@ -42,6 +42,14 @@ urlpatterns = patterns('trajectories.views',
# url(r'^user/(?P<username>\w+)/compare/$', 'compare', name = 'compare'),
url(r'^compare/$', 'compare', name = 'compare'),
# admin pages
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/doc/', include('django.contrib.admindocs.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'),
)
<!DOCTYPE html>
<html>
<title>404</title>
<style>
body {
text-align: center;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
height: 100%;
}
.container {
margin: auto;
}
h1 {
font-family: "Helvetica Neue", "Helvetica", sans-serif;
margin-top: ;
}
#squirrels {
width: 100%;
}
#acorn {
width: 52px;
position: fixed;
bottom: 10px;
right: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>404 Error - Page Not Found</h1>
<img id="squirrels" src="/static/img/squirrels.png">
</div>
<a href="/"><img id="acorn" src="/static/img/acorn.png"></a>
</body>
</html>
Markdown is supported
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