Commit 1dd208f7 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

webproject: Remove requires_csrf_token

method does not seem to exist in debian packaged django release. Since
csrftoken is not used in 500 templates the removal won't cause any side
effects.
parent 2edca64a
......@@ -36,7 +36,6 @@ import os
from django.conf.urls.defaults import *
from synnefo.util.entry_points import extend_urls
from django.utils.importlib import import_module
from django.views.decorators.csrf import requires_csrf_token
from django.template import Context, loader, RequestContext
from django import http
from django.conf import settings
......@@ -101,10 +100,6 @@ if getattr(settings, 'WEBPROJECT_SERVE_STATIC', settings.DEBUG):
urlpatterns = extend_urls(urlpatterns, 'synnefo')
# This can be called when CsrfViewMiddleware.process_view has not run,
# therefore need @requires_csrf_token in case the template needs
# {% csrf_token %}.
@requires_csrf_token
def handle500(request, template_name="500.html"):
t = loader.get_template(template_name)
context = Context({})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment