Задать вопрос

Тел: +7 965 3737 888

457

Просмотров

0

Ответов

HTTP method_required Decorator

<p>Edit: As James pointed out, django.views.decorators.http already provides stuff for this. Use that instead.</p>
<p>Old description: Should be pretty straightforward; you give it the method you can accept, it returns 405's for other methods. EG, @method_required("POST") at the top of your view. </p>

Вопрос полезен? Да0/Нет0
file_3608.py(604.0б)
None