Menu
  • HOME
  • TAGS

Django - inheritance

django,django-models,django-errors,django-inheritance

If you want to populate Collab fields from Member instance then you should do it explicitly: c = Collab(id_scribe=m.id_scribe, id_pj=m.id_pj) ...

Using django_comments but getting 'QuerySet' object has no attribute '_meta'

django,comments,django-comments,django-errors

Change your home.html to something like: {% load comments %} <html> {% for entry in categ %} {% get_comment_count for entry as comment_count %} {% render_comment_list for entry %} {% empty %} <p> categ not present </p> {% endfor %} </html> As I understand the template tags take an object...

Sending error triggered emails to selected admins only

django,django-errors

In Django 1.8 there will be the ability to override who receives an email when an error occurs. It's also possible in earlier Django versions but the code will be uglier. Django sends the error emails using Python's logging framework and this can be customised (see documentation). In particular the...

Django: How to get exception instance in error handlers

python,django,error-handling,django-middleware,django-errors

This feature has been implemented as ticket 24733. In Django 1.9 and later, the exception will be passed to the error handlers....