Logo

Django gotchas 0.1 documentation

Welcome to Django gotchas documentation!¶

Contents:

  • Urls
    • Url patterns catching unexpected patterns
    • Urlpatterns failing to catch expected patterns
  • Views
    • Not returning a HttpResponse
    • Not including RequestContext
    • Filtering on id
    • Passing locals() to templates
  • Forms
    • request.POST binding to wrong parameter in forms
    • Using form.cleaned_data before calling form.is_valid
    • Overriding form.save in ModelForms:
    • Not calling superclass __init__
  • Models
    • Not adding a max_length to models.CharField
    • Adding null=True on subclasses of CharField
    • Not handling for ModelClass.DoesNotExist and ModelClass.MultipleObjectsReturned
    • Overriding .save()
    • Trying qs.get(‘foo’)
    • Trying to use an stale object
  • Templates
    • Relative imports and extends in templates
    • Not wrapping {% for %} in {% if %}
    • Template Silencing:
  • Contrib
    • Manually Authenticating a User:

Indices and tables¶

  • Index
  • Module Index
  • Search Page

Table Of Contents

  • Urls
  • Views
  • Forms
  • Models
  • Templates
  • Contrib

This Page

Show Source
next | index

Contact Us

  • Email : [email protected]
  • Address :

    Agiliq Info Solutions India Pvt Ltd,
    # 302, Siri Sampada Appts,
    Near Madhapur Police Station,
    Hyderabad - 500033. India.

Know More

  • Follow us on Twitter
  • Connect us on Facebook
  • Linkedin
  • Youtube - Python Screencasts
  • Our Posterous
  • Our Tumblr
  • Code

Read

  • Blog
  • Newsletter
  • Django Design Patterns
  • Djen of Django
  • Django Gotchas
  • Software Consulting Howto

About

  • Home
  • Contact Us
  • Who we are
  • What we do
  • Blog
  • Forum
© Copyright 2009, Usware Technologies and Contributers. Created using Sphinx 1.6.5.