* [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/main/, gpackages/template/
@ 2012-06-09 21:58 Slava Bacherikov
0 siblings, 0 replies; only message in thread
From: Slava Bacherikov @ 2012-06-09 21:58 UTC (permalink / raw
To: gentoo-commits
commit: 911e3af80912f43599f271b84aa2b1482b372f7b
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Sat Jun 9 19:42:20 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Sat Jun 9 19:42:20 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=911e3af8
Add base templates for 404 and 500 errors.
---
gpackages/main/urls.py | 2 ++
gpackages/template/404.html | 11 +++++++++++
gpackages/template/500.html | 10 ++++++++++
3 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/gpackages/main/urls.py b/gpackages/main/urls.py
index 94cb917..ad74f35 100644
--- a/gpackages/main/urls.py
+++ b/gpackages/main/urls.py
@@ -29,4 +29,6 @@ if DEBUG:
UseFlagDescriptionModel, RepositoryModel)
urlpatterns += (
url(r'^data/(.*)',databrowse.site.root),
+ url(r'^404/$','django.views.defaults.page_not_found', name = '404'),
+ url(r'^500/$','django.views.defaults.server_error', name = '500'),
)
diff --git a/gpackages/template/404.html b/gpackages/template/404.html
new file mode 100644
index 0000000..b9b22c3
--- /dev/null
+++ b/gpackages/template/404.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Not found</title>
+</head>
+<body>
+ <h1>Error 404</h1>
+ <p>Not found</p>
+</body>
+</html>
diff --git a/gpackages/template/500.html b/gpackages/template/500.html
new file mode 100644
index 0000000..9918eba
--- /dev/null
+++ b/gpackages/template/500.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Error 500</title>
+</head>
+<body>
+ <h1>Error 500</h1>
+</body>
+</html>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-09 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-09 21:58 [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/main/, gpackages/template/ Slava Bacherikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox