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

  • Amazon Web Services

    Amazon Web S

    8 NİSAN 2009
  • Canal TekZoom

    Canal TekZoo

    1 NİSAN 2012
  • Leigh Momii

    Leigh Momii

    10 Mayıs 2006