SORU
8 Temmuz 2011, Cuma


Nasıl bir Tepki django Yasak yetiştirme

Aşağıdaki: yapmak istiyorum

raise HttpResponseForbidden()

Ama bir hata alıyorum:

exceptions must be old-style classes or derived from BaseException, not HttpResponseForbidden

Bu ne yapmalıyım?

CEVAP
8 Temmuz 2011, Cuma


Bu görünüm ile başka bir yanıtı geri.

from django.http import HttpResponseForbidden

return HttpResponseForbidden()

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • colacas

    colacas

    29 EKİM 2006
  • FOSDEM

    FOSDEM

    13 Ocak 2009
  • GOTO Conferences

    GOTO Confere

    3 EKİM 2011