csrf_exempt to allow Cross site request forgery for curl testing

This commit is contained in:
Christophe Boulanger 2016-06-03 14:55:56 +02:00
parent 25a597eaa5
commit 2cfa762903
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls import patterns, include, url
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from passerelle.urls_utils import decorated_includes, required, app_enabled
@ -25,7 +26,7 @@ from views import *
public_urlpatterns = patterns('',
url(r'^(?P<slug>[\w,-]+)/$', SigDetailView.as_view(), name='imio-tax-compute-view'),
url(r'^(?P<slug>[\w,-]+)/eval/$', EvalView.as_view(), name='imio-tax-compute-eval'),
url(r'^(?P<slug>[\w,-]+)/eval/$', csrf_exempt(EvalView.as_view()), name='imio-tax-compute-eval'),
)
management_urlpatterns = patterns('',