Commits

Yuri Baburov  committed f2f85c3

Themes continued

  • Participants
  • Parent commits 3656e32
  • Branches burchik

Comments (0)

Files changed (18)

+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>blog</name>
+	<comment></comment>
+	<projects>
+		<project>django</project>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.python.pydev.PyDevBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.python.pydev.pythonNature</nature>
+	</natures>
+</projectDescription>

File .pydevproject

+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-pydev version="1.0"?>
+
+<pydev_project>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.4</pydev_property>
+<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
+<path>/blog</path>
+<path>/blog/apps</path>
+<path>/blog/compat</path>
+</pydev_pathproperty>
+</pydev_project>

File .settings/org.eclipse.core.resources.prefs

+#Tue Feb 26 19:15:36 NOVT 2008
+eclipse.preferences.version=1
+encoding//apps/blog/models.py=UTF-8
+encoding//apps/blog/views.py=UTF-8
+encoding//apps/captcha/__init__.py=UTF-8
+encoding//apps/lib/fields.py=UTF-8
+encoding//apps/patches.py=UTF-8
+encoding//apps/render/tests.py=UTF-8
+encoding//compat/pytils/__init__.py=UTF-8
+encoding//compat/pytils/dt.py=UTF-8
+encoding//compat/pytils/err.py=UTF-8
+encoding//compat/pytils/numeral.py=UTF-8
+encoding//compat/pytils/test/__init__.py=UTF-8
+encoding//compat/pytils/test/templatetags/__init__.py=UTF-8
+encoding//compat/pytils/translit.py=UTF-8
+encoding//compat/pytils/utils.py=UTF-8
+encoding/settings.py=UTF-8
+encoding/settings_bur.py=UTF-8

File blog.db

Binary file added.

File settings_bur.py

+# -*- encoding: utf-8 -*-
+
+import deseb
+
+ADMINS = (
+    ('Yuri Baburov', 'burchik@gmail.com'),
+)
+
+DATABASE_ENGINE = 'sqlite3'# 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
+DATABASE_NAME = 'blog.db'# Or path to database file if using sqlite3.
+DATABASE_USER = ''# Not used with sqlite3.
+DATABASE_PASSWORD = '' # Not used with sqlite3.
+DATABASE_HOST = ''      # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''           # Set to empty string for default. Not used with sqlite3.
+
+BLOG_URLCONF_ROOT = ''
+BLOG_NAME = 'Yuri Baburov'
+TAGLINE = 'Everyone will like it'
+DEFAULT_FROM_EMAIL = 'buriy.com blog <django@buriy.com>'
+
+# You may place templates for rendering HTML to the ../themes/{{ THEME }}/ directory.
+# They will override the templates with the same name from ../templates/ directory.
+THEME = 'buriy'
+
+# Sample static pages links
+STATIC_PAGES = (
+    ('Blog', '/', 'Main place'),
+    ('About', '/about/', 'About me'),
+    ('Dev', 'http://byteflow.su/', 'Take a look at the code and development'),
+#   ('', '', ''),
+#   ('Alfa Romeo SZ', '/blog/sz/', 'One of the best cars in the world'),
+    )
+
+# Set this to true to get first comment by any user autoapproved
+ANONYMOUS_COMMENTS_APPROVED = False
+
+ENABLE_IMPORT = False # Set this to true to enable WordPress importer
+GA_ACC = '' # Google Analytics account
+GRAVATAR_ENABLE = False # Enable gravatars?
+SHORT_POSTS_IN_FEED = False # Full or short posts in feed
+
+# Livejournal crossposting
+ENABLE_LJ_CROSSPOST = False
+LJ_USERNAME = ''
+LJ_PASSWORD = ''
+
+DEBUG = True
+
+INTERNAL_IPS = ('85.118.231.178', '85.118.224.242', '212.75.33.110')
+
+import socket
+
+# Local time zone for this installation. All choices can be found here:
+# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
+TIME_ZONE = 'Asia/Novosibirsk'#'America/Mountain' #Asia/Novosibirsk
+
+if socket.gethostname() == 'bur':
+    DEFAULT_FROM_EMAIL = "django@buriy.com"
+    SERVER_EMAIL = 'django@buriy.com'
+    EMAIL_HOST = "frontier.dottedmag.net"
+    EMAIL_PORT = 25
+    EMAIL_SUBJECT_PREFIX = ''
+else:
+    SERVER_EMAIL = 'django@buriy.com'
+    DEFAULT_FROM_EMAIL = "django@buriy.com"
+    EMAIL_SUBJECT_PREFIX = ''
+    EMAIL_HOST_USER = 'michaele'
+    EMAIL_HOST_PASSWORD = '6ugvgkzm'

File settings_host13_hostmonster_com.py

+# -*- encoding: utf-8 -*-
+
+from settings_bur import *
+
+DATABASE_ENGINE = 'mysql'# 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
+DATABASE_NAME = 'michaele_django'# Or path to database file if using sqlite3.
+DATABASE_USER = 'michaele_django'# Not used with sqlite3.
+DATABASE_PASSWORD = 'buriy_blog' # Not used with sqlite3.
+DATABASE_HOST = ''      # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''           # Set to empty string for default. Not used with sqlite3.
+
+PREPEND_WWW = True

File themes/buriy_blog/base.html

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
+
+<html lang="en">
+<head>
+
+<meta http-equiv="content-language" content="ru,en-us"/>
+<meta name="generator" content="Buriy-blog v0.3"/>
+<meta name="name" content="Yuri Baburov's blog"/>
+<!--
+<meta name="description" content="Blog about me, my life and work: python, django" />
+<meta name="keywords" content="buriy, bur, burchik, Baburov, Yuri Baburov, Yuri Vovanych, Yuriy Baburov"/>
+-->
+
+<!-- prevent caching (can be removed) -->
+<!--<meta http-equiv="Pragma" content="no-cache"/>-->
+<!--<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"/>-->
+<!--<meta http-equiv="Expires" content="-1"/>-->
+<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.buriy.com/rss/"/>
+
+<link rel="stylesheet" type="text/css" href="/media/default_right.css"/>
+<link rel="stylesheet" type="text/css" href="/media/nicetitle.css"/>
+<script type="text/javascript" src="/media/nicetitle.js"></script>
+
+<!-- favorite icon -->
+<link rel="shortcut icon" href="/media/blog.gif"/>
+<link rel="icon" href="/media/blog.gif"/>
+
+<title>Yuri Baburov &raquo; {% block title %} {% endblock %}</title>
+{% block head %}
+{% endblock %}
+</head>
+<body>
+<!-- page header -->
+<div id="header"><a name="top"></a>
+<h1><a href="http://www.buriy.com/" accesskey="1">buriy's blog</a>
+</h1>
+</div>
+
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper"><!-- page content -->
+<div id="container">
+{% block content %}{% endblock %}
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">Sidebar</h2>
+<div id="sidebarcontainer"><!--%parsedinclude(sidebar.inc)%--> <!-- page menu -->
+<div class="sidebar">
+<dl class="sidebardl">
+	<dt>Navigation</dt>
+	<dd><a href="/" title="Today&#39;s entry">Today</a></dd>
+	<dd><a href="/2007/" title="Archives 2007">Archives 2007</a></dd>
+	<dd><a href="/2006/" title="Archives 2006">Archives 2006</a></dd>
+</dl>
+</div>
+
+<!-- category list, not on error or member page -->
+<div class="sidebar">
+<dl class="sidebardl">
+	<dt>Categories</dt>
+	{% for cat in categories %} 
+	<dd>
+		<a href="/{{cat.norm_value}}/">	{{cat.value}} </a> 
+	</dd>
+	{% endfor %}
+</dl>
+</div>
+
+<!-- search form --> <!-- 
+<div class="sidebar">
+<dl class="sidebardl">
+<dt>Search</dt>
+<dd><%searchform%></dd>
+</dl>
+</div>
+--> <!-- login form --> <!--
+<div class="sidebar">
+<dl class="sidebardl">
+<dt>Login</dt>
+<dd><%loginform%></dd>
+</dl>
+</div>
+--> <!-- links -->
+<div class="sidebar">
+    <dl class="sidebardl">
+    	<dt>Links</dt>
+    	<dd><a rel="nofollow" href="http://buriy.moikrug.ru/"><img
+    		style="width: 16px; height: 16px; border:0; vertical-align: middle; margin-right: 3px;"
+    		src="/media/moikrug.gif" alt="MoiKrug - Бабуров Юрий"
+    		title="MoiKrug - Бабуров Юрий"/></a><a rel="nofollow" 
+    		href="http://buriy.moikrug.ru/"
+    		title="MoiKrug - Бабуров Юрий"/>Бабуров Юрий</a></dd>
+    	<dd><a rel="nofollow" href="http://buriy.livejournal.com" title="My another blog">buriy.livejournal.com</a></dd>
+    	<dd><a href="http://effele.com/" title="Effective learning">Effective learning</a></dd>
+    </dl>
+    <div class="sidebar">
+        <dl class="sidebardl">
+	    <dt>Last comments</dt>
+	    {% for c in comments %}
+            <dd>
+	        <nobr>{{c.submit_date|date:"M d"}}, {{c.person_name}}</nobr>
+	        <a title='{{c.get_content_object.pub_date|date:"M d, Y"}}: {{c.get_content_object.headline}}'
+		href="{{c.get_content_object.get_absolute_url}}">
+		{{c.get_content_object.headline}}</a>
+	    </dd>
+    	    {% endfor %}
+        </dl>
+    </div>
+<!-- <dl class="sidebardl">
+    	<dt>My top weekly tracks</dt>
+	<div align="center">
+	<a href="http://www.last.fm/user/buriy/?chartstyle=buriy-weekly-top"><img src="http://imagegen.last.fm/buriy-weekly-top/tracks/buriy.gif" border="0" /></a>
+	</div>
+    </dl>
+-->
+<!--
+<a href="http://www.anothr.com/add?url=http%3A//www.buriy.com/">
+<img src="http://www.anothr.com/images/addtoanothr2.jpg" border="0"
+alt="Subscribe by Anothr(Skype/Gtalk/Msn)"/></a>
+<span style="font-size:10px;display:block;color:DarkGray;line-height:1.2em">
+Subscribe via Skype/Gtalk/MSN</span>-->
+</div>
+</div>
+
+<div class="clearing" style="clear:both">&nbsp;</div>
+
+</div>
+</div>
+
+<div id="footer">
+    <div id="copyrights"><small>Copyright 2006 (c) <b>buriy</b> and
+    others&nbsp; | <a href="#top">Back to top</a></small></div>
+</div>
+
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-3332477-1");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
+
+</body>
+</html>

File themes/buriy_blog/entry_archive.html

+{% extends "blog/base.html" %}
+{% load comments %}
+
+{% block title %}Last news{% endblock %}
+{% block head %} 
+<link rel="openid.server" href="http://www.livejournal.com/openid/server.bml" />
+<link rel="openid.delegate" href="http://buriy.livejournal.com/" />
+<link rel="meta" type="application/rdf+xml" title="FOAF" href="http://www.buriy.com/media/foaf.rdf" />
+<!--<meta http-equiv="X-XRDS-Location" content="http://buriy.livejournal.com/data/yadis" />
+<meta http-equiv="X-YADIS-Location" content="http://buriy.livejournal.com/data/yadis" />-->
+<meta name="microid" content="1b02104d6725eb30e4025cab7dfc49efbe704bb2" />
+{% endblock %}
+{% block content %}
+<div class="content">
+    {% for object in latest %}
+        {% get_free_comment_count for blog.entry object.id as comment_count %}
+    
+        <div class="contenttitle">
+        <h2>{{ object.pub_date|date:"m/j" }}: <a
+            nicetitle="Бабуров Юрий: {{ object.headline }}"
+            href="{{ object.get_absolute_url }}"> {{ object.headline }}</a></h2>
+        </div>
+        
+        <div class="contentitem">
+            <div class="contentitem1">
+            <small class="contentitemcategory">
+                Categories: 
+                {% for cat in object.tags.all %}
+                <a rel="tag" nicetitle="Category: {{ cat.value }}" href="/{{ cat.norm_value }}/">
+                    {{cat.value}}</a>{% if not forloop.last %}, {% endif %}
+                {% endfor %}
+            </small>
+        </div>
+            <div class="contentitem2">
+                <small class="contentitempostedby">
+                Posted by: {{ object.author }}
+                </small>
+            </div>
+            <div class="contentitem3">
+                <small class="contentitemcomments">
+                    <a nicetitle="Add comment on '{{ object.headline }}'" href="{{ object.get_absolute_url }}#comments" rel="bookmark">
+                    {% if comment_count %}
+                    {{ comment_count }} comment{{ comment_count|pluralize }}
+                    {% else %}
+                    Add comment
+                    {% endif %}
+                    </a>
+                </small>
+            </div>
+            {% if user.is_authenticated %}
+            <div class="contentitem4">
+                <small class="contentitemedit">
+                    <a nicetitle="Edit post '{{ object.headline }}'" 
+                    href="/admin/blog/entry/{{object.id }}" rel="bookmark">
+                    Edit post
+                    </a>
+                </small>
+            </div>
+            {% endif %}
+        </div>
+        <div class="contentbody">
+            {{ object.body|safe|linebreaks }}
+        </div>
+    {% endfor %}
+</div>
+{% endblock %}

File themes/buriy_blog/entry_archive_day.html

+{% extends "blog/base.html" %}
+{% load comments %}
+{% block title %}{{ day|date:"F j" }}{% endblock %}
+
+{% block content %}
+
+<div class="content">
+    <div class="contenttitle">
+        <h2>{{ day|date:"F j" }} archive</h2>
+        You are currently viewing archive for {{ day|date:"d F, Y" }} 
+    </div>
+</div>
+<div class="content">
+    {% for object in object_list %}
+        {% get_free_comment_count for blog.entry object.id as comment_count %}
+    
+        <div class="contenttitle">
+        <h2>{{ object.pub_date|date:"m/j" }}: <a
+            nicetitle="Бабуров Юрий: {{ object.headline }}"
+            href="{{ object.get_absolute_url }}"> {{ object.headline }}</a></h2>
+        </div>
+        
+        <div class="contentitem">
+            <div class="contentitem1">
+                <small class="contentitemcategory">
+                Categories: 
+                {% for cat in object.tags.all %}{% if not forloop.first %}, {% endif %}
+                <a rel="tag" nicetitle="Category: {{ cat.value }}" href="/{{ cat.norm_value }}/">{{cat.value}}</a>
+                {% endfor %}
+                </small>
+            </div>
+            <div class="contentitem2">
+                <small class="contentitempostedby">
+                Posted by: {{ object.author }}
+                </small>
+            </div>
+            <div class="contentitem3">
+                <small class="contentitemcomments">
+                    <a nicetitle="Add comment on '{{ object.headline }}'" href="{{ object.get_absolute_url }}#comments" rel="bookmark">
+                    {% if comment_count %}
+                    {{ comment_count }} comment{{ comment_count|pluralize }}
+                    {% else %}
+                    Add comment
+                    {% endif %}
+                    </a>
+                </small>
+            </div>
+            {% if user.is_authenticated %}
+            <div class="contentitem4">
+                <small class="contentitemedit">
+                    <a nicetitle="Edit post '{{ object.headline }}'" 
+                    href="/admin/blog/entry/{{object.id }}" rel="bookmark">
+                    Edit post
+                    </a>
+                </small>
+            </div>
+            {% endif %}
+        </div>
+        <div class="contentbody">
+            {{ object.body|safe|linebreaks }}
+        </div>
+    {% endfor %}
+</div>
+{% endblock %}

File themes/buriy_blog/entry_archive_month.html

+{% extends "blog/base.html" %}
+{% load comments %}
+{% block title %}{{ month|date:"F Y" }}{% endblock %}
+
+{% block content %}
+<div class="content">
+    <div class="contenttitle">
+        <h2>{{ month|date:"F Y" }} archive</h2>
+        You are currently viewing archive for {{ month|date:"F Y" }} 
+    </div>
+</div>
+<div class="content">
+    {% for object in object_list %}
+        {% get_free_comment_count for blog.entry object.id as comment_count %}
+    
+        <div class="contenttitle">
+        <h2>{{ object.pub_date|date:"M/j" }}: <a
+            nicetitle="Бабуров Юрий: {{ object.headline }}"
+            href="{{ object.get_absolute_url }}"> {{ object.headline }}</a></h2>
+        </div>
+        
+        <div class="contentitem">
+            <div class="contentitem1">
+                <small class="contentitemcategory">
+                Categories: 
+                {% for cat in object.tags.all %}{% if not forloop.first %}, {% endif %}
+                <a rel="tag" nicetitle="Category: {{ cat.value }}" href="/{{ cat.norm_value }}/">{{cat.value}}</a>
+                {% endfor %}
+                </small>
+            </div>
+            <div class="contentitem2">
+                <small class="contentitempostedby">
+                Posted by: {{ object.author }}
+                </small>
+            </div>
+            <div class="contentitem3">
+                <small class="contentitemcomments">
+                    <a nicetitle="Add comment on '{{ object.headline }}'" href="{{ object.get_absolute_url }}#comments" rel="bookmark">
+                    {% if comment_count %}
+                    {{ comment_count }} comment{{ comment_count|pluralize }}
+                    {% else %}
+                    Add comment
+                    {% endif %}
+                    </a>
+                </small>
+            </div>
+            {% if user.is_authenticated %}
+            <div class="contentitem4">
+                <small class="contentitemedit">
+                    <a nicetitle="Edit post '{{ object.headline }}'" 
+                    href="/admin/blog/entry/{{object.id }}" rel="bookmark">
+                    Edit post
+                    </a>
+                </small>
+            </div>
+            {% endif %}
+        </div>
+        <div class="contentbody">
+            {{ object.body|safe|linebreaks }}
+        </div>
+    {% endfor %}
+</div>
+{% endblock %}

File themes/buriy_blog/entry_archive_year.html

+{% extends "blog/base.html" %}
+
+{% block title %}{{ year }} archives{% endblock %}
+
+{% block content %}
+<div class="content">
+<h1>{{ year }} year archive</h1>
+
+{% regroup object_list by pub_date.month as grouped_list %}
+
+<ul class="linklist">
+{% for group in grouped_list %}
+    <li><h2><a href="{{ group.list.0.pub_date|date:"M"|lower }}/">
+	{{ group.list.0.pub_date|date:"F" }}</a></h2>
+    <ul>
+        {% for object in group.list %}
+	<li>{{object.pub_date|date:"m/d"}}
+	    <a href="{{object.get_absolute_url}}">{{ object.headline }}</a>
+	</li>
+        {% endfor %}
+    </ul>
+{% endfor %}
+
+</ul>
+</div>
+{% endblock %}

File themes/buriy_blog/entry_detail.html

+{% extends "blog/base.html" %}
+{% load comments %}
+{% block title %}{{ object.headline|escape }}{% endblock %}
+{% block content %}
+<div class="content">
+        <div class="contenttitle">
+        <h2>{{ object.pub_date|date:"m/j" }}: <a
+            nicetitle="Бабуров Юрий: {{ object.headline }}"
+            href="{{ object.get_absolute_url }}"> {{ object.headline }}</a></h2>
+        </div>
+        
+        <div class="contentitem">
+            <div class="contentitem1">
+                <small class="contentitemcategory">
+                Categories: 
+                {% for cat in object.tags.all %}
+                <a nicetitle="Category: {{ cat.value }}" href="/{{ cat.norm_value }}/">
+                    {{cat.value}}</a>{% if not forloop.last %}, {% endif %}
+                {% endfor %}
+                </small>
+            </div>
+            <div class="contentitem2">
+                <small class="contentitempostedby">
+                Posted by: {{ object.author }}
+                </small>
+            </div>
+            <div class="contentitem3">
+                <small class="contentitemcomments">
+                    <a nicetitle="Add comment on '{{ object.headline }}'" href="{{ object.get_absolute_url }}#comments" rel="bookmark">
+                    {% if comment_count %}
+                    {{ comment_count }} comment{{ comment_count|pluralize }}
+                    {% else %}
+                    Add comment
+                    {% endif %}
+                    </a>
+                </small>
+            </div>
+            {% if user.is_authenticated %}
+            <div class="contentitem4">
+                <small class="contentitemedit">
+                    <a nicetitle="Edit post '{{ object.headline }}'" 
+                    href="/admin/blog/entry/{{object.id }}" rel="bookmark">
+                    Edit post
+                    </a>
+                </small>
+            </div>
+            {% endif %}
+        </div>
+        <div class="contentbody">
+            {{ object.body|safe|linebreaks }}
+        </div>
+</div>
+
+{% load comments %}
+{% get_free_comment_list for blog.entry object.id as comment_list %}
+
+<div class="content">
+    <div class="contenttitle">
+        <h2>Comments</h2>
+    </div>
+    <a name="comments"></a>
+    <div class="comments">
+        {% if comment_list %}
+            {% for comment in comment_list %}
+{% comment %} 
+            <div class="comment" id="c{{ comment.id }}">
+                <h3>{{ comment.person_name }} <span class="small quiet">{{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}</span></h3>
+                {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
+            </div>
+{% endcomment %}
+            {% ifequal comment.person_name "bur" %} 
+            <div class="itemcomment id1" id="c{{ comment.id }}">
+            {% else %}
+                {% ifequal comment.person_name "buriy" %} 
+	        <div class="itemcomment id1" id="c{{ comment.id }}">
+                {% else %}
+        	<div class="itemcomment id0" id="c{{ comment.id }}">
+		{% endifequal %}
+            {% endifequal %} 
+                <h3>
+                <b>{{ comment.person_name }}</b> wrote:</h3>
+                
+                <div class="commentbody"> 
+                    {{ comment.comment|escape|urlizetrunc:"45"|linebreaks }}
+                </div>
+                <div class="commentinfo">
+                {{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}
+                </div>
+            </div>
+            {% endfor %} 
+        {% else %} 
+            No comments yet 
+        {% endif %}
+    </div>
+</div>
+<div class="content">
+    <div class="contenttitle">
+        <h2>Add Comment</h2>
+    </div>
+    {% free_comment_form for blog.entry object.id %}
+</div>
+{% endblock %}

File themes/default/base.html

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+{% load i18n %}
+{% load sidebar %}
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <title>{% block title %}python + django = веб-мозги: {% endblock %}</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <link rel="alternate" type="application/rss+xml" title="{{ BLOG_NAME }}: blog entries feed" href="{% url rss_feed "blog" %}" />
+    <link rel="alternate" type="application/rss+xml" title="{{ BLOG_NAME }}: comments feed" href="{% url rss_feed "comments" %}" />
+    <link rel="stylesheet" type="text/css" href="{{ THEME_STATIC_URL }}css/style.css"/>
+    <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.js"/></script>
+    <script type="text/javascript" src="{{ THEME_STATIC_URL }}js/tools.js"/></script>
+    {% block extrahead %}{% endblock %}
+</head>
+<body>
+    <div id="head">
+        {% include "head.html" %}
+    </div>
+    <div id="body">
+        <div id="contentbar">
+            {% site_messages %}
+            <div id="content">
+                {% block content %}{% endblock %}
+            </div>
+        </div>
+        <div id="sidebar">
+            <div id="side">
+                {% sidebar %}
+            </div>
+        </div>
+        <div class="clear"></div>
+    </div>
+    <div id="footer">
+        {% include "footer.html" %}
+    </div>
+{% if debug %}{% include "debug.html" %}{% endif %}
+</body>
+</html>

File themes/default/blog/post_list.html

+{% load i18n %}
+{% load pagination %}
+{% extends "base.html" %}
+
+{% block title %}{% trans "Posts" %}{% endblock %}
+
+{% block extrahead %}
+<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/highlight.css" />
+<script type="text/javascript" src="{{ STATIC_URL }}js/highlight.js"></script>
+<script type="text/javascript">initHighlightingOnLoad('html', 'css', 'python');</script>
+{% if tag %}
+<link rel="alternate" type="application/rss+xml" title="{{ BLOG_NAME }}: posts with tag '{{ tag }}' feed" href="{% url feed feedurl %}" />
+{% endif %}
+{% endblock %}
+
+{% block content %}
+
+{% filter typogrify %}
+  {% if year %}<h1>{% trans "Archive for" %} {{ year }}</h1>{% endif %}
+  {% if month %}<h1>{% trans "Archive for" %} {{ month|date:"F, Y" }}</h1>{% endif %}
+  {% if day %}<h1>{% trans "Archive for" %} {{ day|date:"F d, Y" }}</h1>{% endif %}
+
+  {% if tag %}<h1>{% trans "All articles, tagged with" %} "{{ tag }}"</h1>{% endif %}
+{% endfilter %}
+
+{% for object in object_list %}
+{% include "blog/post_entry.html" %}
+{% endfor %}
+
+{% if month or day or year %}
+
+    {% if day %}
+        {% with previous_day as pd %}{% if pd %}<a href="{% url day_archive year=pd.year,month=pd|get_month,day=pd|get_day %}">{% trans "Previous day" %}</a>{% endif %}{% endwith %}
+        {% with next_day as nd %}{% if nd %}<a href="{% url day_archive year=nd.year,month=nd|get_month,day=nd|get_day %}">{% trans "Next day" %}</a>{% endif %}{% endwith %}
+    {% endif %}
+
+    {% if month %}
+    {% with previous_month as pm %}{% if pm %}<a href="{% url month_archive year=pm.year,month=pm|get_month %}">{% trans "Previous month" %}</a>{% endif %}{% endwith %}
+        {% with next_month as nm %}{% if nm %}<a href="{% url month_archive year=nm.year,month=nm|get_month %}">{% trans "Next month" %}</a>{% endif %}{% endwith %}
+    {% endif %}
+
+    {% comment %}
+    <!-- current djanog trunk does not support prev/next dates in year arhcive -->
+    {% if year %}
+        {% with previous_year as py %}{% if py %}<a href="{% url year_archive year=py.year %}">{% trans "Previous year" %}</a>{% endif %}{% endwith %}
+        {% with next_year as ny %}{% if ny %}<a href="{% url year_archive year=ny.year %}">{% trans "Next year" %}</a>{% endif %}{% endwith %}
+    {% endif %}
+    {% endcomment %}
+
+{% else %}
+    {% pagination %}
+{% endif %}
+
+{% endblock %}

File themes/default/blog/sidebar.html

+{% load i18n %}
+{# load sape_extras #}
+{% load tagging_tags %}
+
+<div class="block">
+    <div class="header"><span>{% trans "Last comments" %}</span></div>
+    {% if comments %}
+    <ul>
+    {% for comment in comments %}
+    <li><span class="author">{% link comment.user %}</span> &raquo; <a href="{{ comment.get_absolute_url }}">{{ comment.object.name }}</a></li>
+    {% endfor %}
+    </ul>
+    {% else %}
+    <div>{% trans "No comments on blog" %}</div>
+    {% endif %}
+</div>
+
+<div class="block">
+    <div class="header"><span>{% trans "Last posts" %}</span></div>
+    {% if last_posts %}
+    <ul>
+    {% for post in last_posts %}
+        <li>{% link post %}</li>
+    {% endfor %}
+    </ul>
+    {% else %}
+    <div>{% trans "No posts on blog" %}</div>
+    {% endif %}
+</div>
+
+<div class="block">
+    <div class="header"><span>{% trans "Useful information" %}</span></div>
+    <ul>
+        <li><a title="blog entries feed" href="{% url rss_feed "blog" %}">{% trans "Blog feed" %}</a></li>
+        <li><a title="comments feed" href="{% url rss_feed "comments" %}">{% trans "Comments feed" %}</a></li>
+    </ul>
+</div>
+
+<div class="block">
+    <div class="header"><span>{% trans "Tags" %}</span></div>
+    <ul>
+        {% tag_cloud_for_model blog.post as tags %}
+        {% render_tag_cloud tags %}
+    </ul>
+</div>
+<!--
+<div class="block advertize">
+    <div class="header"><span>{% trans "Advertize" %}</span></div>
+    <ul>
+        {# sape_links_list request #}
+    </ul>
+</div>
+-->

File themes/default/flatpages/default.html

+{% extends "base.html" %}
+
+{% block title %}{{ flatpage.title }}{% endblock %}
+
+{% block content %}
+{{ flatpage.content }}
+{% endblock %}

File themes/default/footer.html

+{% load debug %}
+<div class="left">
+    <div class="copyrights">
+        webmaster: <a href="mailto:lizendir@gmail.com">lorien</a>
+    </div>
+</div>
+<div class="right">
+    <div class="statcounters">
+        <!--LiveInternet counter--><script type="text/javascript"><!--
+        document.write("<a href='http://www.liveinternet.ru/click' "+
+        "target=_blank><img src='http://counter.yadro.ru/hit?t24.6;r"+
+        escape(document.referrer)+((typeof(screen)=="undefined")?"":
+        ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
+        screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
+        ";"+Math.random()+
+        "' alt='' title='LiveInternet: показано число посетителей за сегодня' "+
+        "border=0 width=88 height=15><\/a>")//--></script><!--/LiveInternet-->
+    </div>
+</div>
+<div class="clear"></div>
+{% site_debug %}

File themes/default/head.html

+{% load i18n %}
+
+<div class="title-strip">
+    <div class="left">
+        <h2 class="site-title"><a href="/">{{ BLOG_NAME }}</a></h2>
+        <div class="site-description">{{ TAGLINE }}</div>
+        <div class="clear"></div>
+    </div>
+    <div class="right">
+        <!--<form method="get" action="{% url search %}" id="search-form">-->
+            <!--<input type="text" name="query" class="query" value="искать..." onclick="clearSearchField(this)" />-->
+        <!--</form>-->
+    </div>
+    <div class="clear"></div>
+</div>
+
+<div class="strip info-strip">
+    <div class="left">
+        <ul class="flat">
+            <li><a href="/about/">{% trans "About" %}</a></li>
+            <li><a href="http://trac.piranha.org.ua/" title="посмотреть код, динамику развития и оставить пожелания">Trac</a></li>
+        </ul>
+        <div class="clear"></div>
+    </div>
+    <div class="right">
+        {% if user.is_authenticated %}
+        <ul class="flat">
+            <li><div class="account-info">{% trans "Hello," %} {{ user.name }}</div></li>
+            <li><a class="first" href="{% url profile_edit %}">{% trans "Profile" %}</a></li>
+            {% if user.is_staff %}<li><a href="/admin/">{% trans "Admin" %}</a>{% endif %}</li>
+            <li><a class="last" href="{% url logout %}">{% trans "Logout" %}</a></li>
+        </ul>
+        <div class="clear"></div>
+        {% else %}
+            <ul class="flat">
+                <li><a class="first last" href="{% url login %}" onclick="return showLoginForm();">login</a></li>
+            </ul>
+        {% endif %}
+    </div>
+    <div class="clear"></div>
+</div>
+<div id="login-form">
+    <a href="#" onclick="return hideLoginForm();">close</a>
+    <p>{% trans "Login with password" %}</p>
+    <form action="{% url login %}" method="post">
+        <input type="text" id="email" name="email" />
+        <input type="password" id="password" name="password" />
+        <input type="submit" value="Login" />
+    </form>
+    <a href="{% url password_reset %}">{% trans "Forgot password?" %}</a>
+    <p>{% trans "Login with OpenID" %}</p>
+    <form action="{% url openid_signin %}" method="post">
+        <input type="text" id="openid_url" name="openid_url" />
+        <input type="submit" value="Login" />
+    </form>
+</div>
+{% block bar %}{% endblock %}