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

  • case LianLi

    case LianLi

    28 Mayıs 2010
  • Greater Than Gatsby Photoshop Actions & Lightroom Presets

    Greater Than

    11 ŞUBAT 2013
  • jonathepianist

    jonathepiani

    31 Temmuz 2008