mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Added request tcp
This commit is contained in:
parent
6ff55e461c
commit
2fd5c0e4e8
2 changed files with 4 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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'),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue