csrf_exempt to allow Cross site request forgery for curl testing
This commit is contained in:
parent
25a597eaa5
commit
2cfa762903
|
@ -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('',
|
||||
|
|
Loading…
Reference in New Issue