Commits

Shinya Okano  committed 2a288b2

管理サイトのテンプレートを追加

  • Participants
  • Parent commits f949c35

Comments (0)

Files changed (5)

 syntax: glob
 *.pyc
 *.swp
+*.db
+
+syntax: regexp
+/settings\.py$

File projects/_admin/hosting/settings.py.default

 ROOT_URLCONF = 'hosting.urls'
 
 TEMPLATE_DIRS = (
-    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
-    # Always use forward slashes, even on Windows.
-    # Don't forget to use absolute paths, not relative paths.
+    os.path.join(BASE_DIR, 'templates'),
 )
 
 INSTALLED_APPS = (

File projects/_admin/hosting/templates/404.html

+{% extends "base.html" %}
+
+{% block title %}404 Not Found.{% endblock %}
+
+{% block h1 %}404 Not Found.{% endblock %}

File projects/_admin/hosting/templates/500.html

+{% extends "base.html" %}
+
+{% block title %}500 internal server error{% endblock %}
+
+{% block h1 %}500 internal server error{% endblock %}

File projects/_admin/hosting/templates/base.html

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"> 
+  <head> 
+    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> 
+    <title>{% block title %}wsgiapp.com{% block title %}</title> 
+    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> 
+  </head> 
+  <body> 
+    <div id="wrap"> 
+      <div id="header"> 
+        <h1>{% block h1 %}wsgiapp.com{% endblock %}</h1> 
+      </div> 
+      <div id="content">
+        {% block content %}{% endblock %}
+      </div>
+    </div>
+  </body>
+</html>