blank index page. code stolen from polycephaly
This commit is contained in:
parent
92b7e3b333
commit
db1f77e102
@ -4,9 +4,9 @@ from django.contrib import admin
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Examples:
|
||||
# url(r'^$', 'dr_botzo.views.home', name='home'),
|
||||
# url(r'^blog/', include('blog.urls')),
|
||||
url(r'^$', 'dr_botzo.views.home', name='home'),
|
||||
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
)
|
||||
|
||||
# vi:tabstop=4:expandtab:autoindent
|
||||
|
8
dr_botzo/views.py
Normal file
8
dr_botzo/views.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
def home(request):
|
||||
"""Site index, nothing special (or at all)."""
|
||||
|
||||
return render(request, 'index.html', {})
|
||||
|
||||
# vi:tabstop=4:expandtab:autoindent
|
323
static/css/core.css
Normal file
323
static/css/core.css
Normal file
@ -0,0 +1,323 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
font-family: "Helvetica", "Arial", sans-serif;
|
||||
color: #333333;
|
||||
background: #EFEFEF;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
table {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#mainwrapper {
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
|
||||
width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#header {
|
||||
color: white;
|
||||
background: #811610;
|
||||
font-size: 11pt;
|
||||
|
||||
padding: 5px 10px;
|
||||
|
||||
border-left: 1px solid #CCCCCC;
|
||||
border-right: 1px solid #CCCCCC;
|
||||
}
|
||||
|
||||
#header a:link, #header a:visited, #header a:hover, #header a:active {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#header ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#header li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#header #subnav {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#messages {
|
||||
background: #EFEFEF;
|
||||
border: 1px solid #BBBBBB;
|
||||
|
||||
width: 50%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
padding: 10px;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
#messages ul {
|
||||
list-style-type: none;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
#messages .debug {
|
||||
color: cyan;
|
||||
}
|
||||
|
||||
#messages .info {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#messages .success {
|
||||
color: green;
|
||||
}
|
||||
|
||||
#messages .warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#messages .error {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#body {
|
||||
background: white;
|
||||
|
||||
font-size: 11pt;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 50px;
|
||||
|
||||
border-left: 1px solid #CCCCCC;
|
||||
border-right: 1px solid #CCCCCC;
|
||||
}
|
||||
|
||||
#loginform {
|
||||
background: #EFEFEF;
|
||||
|
||||
width: 50%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 50px;
|
||||
padding: 10px;
|
||||
|
||||
border: 1px solid #BBBBBB;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-left: 25px;
|
||||
margin-right: 25px;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
|
||||
color: #811610;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 25px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#content p, #content ul, #content ol {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#content hr {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#content blockquote {
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
margin-left: 20px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
#content .journal-entry {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#content .unpub-warning {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#content .entry-header a:link,
|
||||
#content .entry-header a:visited,
|
||||
#content .entry-header a:hover,
|
||||
#content .entry-header a:active {
|
||||
color: #811610;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#content .entry-sep {
|
||||
width: 30%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
margin-top: 35px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
#content ol, #content ul {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#content hr {
|
||||
width: 50%;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 25px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
#actions {
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
}
|
||||
|
||||
div.actions {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
div.actionblock {
|
||||
margin-top: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.actionform {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#editform #id_title, #editform #id_tag_str {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.submission table th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.errorlist {
|
||||
border: 1px solid red;
|
||||
background: #FF8888;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.journal-entry .entry-header {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.journal-entry .entry-header h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
.journal-entry .entry-body {
|
||||
clear: both;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.journal-entry .entry-subheader {
|
||||
font-size: 9pt;
|
||||
padding: 5px 5px 5px 25px;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
.journal-entry .entry-footer {
|
||||
font-size: 8pt;
|
||||
color: #888888;
|
||||
padding: 5px 5px 5px 0;
|
||||
}
|
||||
|
||||
.journal-entry .entry-footer a:link,
|
||||
.journal-entry .entry-footer a:visited,
|
||||
.journal-entry .entry-footer a:hover,
|
||||
.journal-entry .entry-footer a:active {
|
||||
font-size: 8pt;
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
#pagination {
|
||||
background: white;
|
||||
width: 60%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page-previous {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.page-next {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.article-image-left {
|
||||
float: left;
|
||||
margin: 10px;
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.article-image-right {
|
||||
float: right;
|
||||
margin: 10px;
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.px400 {
|
||||
width: 400px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.shadow {
|
||||
box-shadow: 2px 2px 3px #aaaaaa;
|
||||
}
|
||||
|
||||
.thumbnail-image {
|
||||
width: 150px;
|
||||
height: auto;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
background: #EFEFEF;
|
||||
|
||||
padding: 10px 0;
|
||||
|
||||
border-top: 1px solid #BBBBBB;
|
||||
|
||||
font-size: 9pt;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#footer a:link, #footer a:visited, #footer a:hover, #footer a:active {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
/*
|
||||
vi:tabstop=4:expandtab:autoindent
|
||||
*/
|
9
templates/403.html
Normal file
9
templates/403.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}403 Forbidden{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<p>Sorry, you do not have permission to take that action. Please contact
|
||||
support with the page with the link you clicked to get here if you believe
|
||||
this is in error.</p>
|
||||
{% endblock content %}
|
8
templates/404.html
Normal file
8
templates/404.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}404 Not Found{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<p>Path <tt>{{ request_path }}</tt> not found. Please contact support with
|
||||
the listed path and the page with the link you clicked to get here.</p>
|
||||
{% endblock content %}
|
8
templates/500.html
Normal file
8
templates/500.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}500 Server Error{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<p>Please contact support with the current URL and date/time and what you
|
||||
were doing that brought you to this page.</p>
|
||||
{% endblock content %}
|
33
templates/base.html
Normal file
33
templates/base.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
{% load url from future %}
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>{% load static %}
|
||||
<title>{% block title %}{% endblock %} - dr.botzo</title>
|
||||
<link href="{% get_static_prefix %}css/core.css" rel="stylesheet" type='text/css' />
|
||||
{% block extra_media %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="mainwrapper">
|
||||
<div id="body">
|
||||
{% if messages %}
|
||||
<div id="messages">
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="content"><div class="inner">
|
||||
{% block content %}{% endblock %}
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!--
|
||||
vi:tabstop=4:expandtab:autoindent
|
||||
-->
|
6
templates/index.html
Normal file
6
templates/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
<!--
|
||||
vi:tabstop=4:expandtab:autoindent
|
||||
-->
|
Loading…
Reference in New Issue
Block a user