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