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

  • hanksranger

    hanksranger

    6 EKİM 2009
  • Justin Case

    Justin Case

    3 EKİM 2011
  • Sean Murphy

    Sean Murphy

    4 ŞUBAT 2009