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

  • My name is Festis and I'm free

    My name is F

    2 EKİM 2011
  • Ludique

    Ludique

    21 NİSAN 2009
  • MusicDeluxeTV

    MusicDeluxeT

    14 Mayıs 2010