Added request tcp

This commit is contained in:
Martin Mahner 2011-06-10 14:25:56 +02:00
parent 6ff55e461c
commit 2fd5c0e4e8
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,6 @@
{% if request.session.userprefs %}
<style type="text/css" media="all">
.code{
{# FIXME: Thats stupid #}
{% ifnotequal request.session.userprefs.font_family "None" %}font-family: {{ request.session.userprefs.font_family }} !important;{% endifnotequal %}
{% ifnotequal request.session.userprefs.font_size "None" %}font-size: {{ request.session.userprefs.font_size }}px !important;{% endifnotequal %}
{% ifnotequal request.session.userprefs.line_height "None" %}line-height: {{ request.session.userprefs.line_height }}px !important;{% endifnotequal %}

View file

@ -87,6 +87,10 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)
TEMPLATE_DIRS = (
os.path.join(PROJECT_DIR, PROJECT_MODULE_NAME, 'templates'),
)