>
> {% formconfig widget widgets.Textarea for "comment" %}
> {% formconfig row using "forms/rows/ul.html" %}
>
> The first statement instructs the form to use a textarea widget for any
> formfield named "comment." The second instructs the form to use ul's as the
> default formrow template anytime a
The SingleObjectMixin.get_context_object_name method currently obtains
its value from the object's verbose name (when context_object_name is
None) :
smart_str(re.sub('[^a-zA-Z0-9]+', '_',
obj._meta.verbose_name.lower()))
When your object's verbose name is using ugettext, the template
context will
If all you need to change is the SITE_ID on the settings file, using
different files for each is not only a mess to handle, but also means
that you'll spend extra RAM for each instance running.
I solve this by using a middleware that changes the SITE_ID based on
the request's hostname:
SITES_DICT
Currently ListView.paginate_queryset discriminates whether the resulting
queryset is paginated or not in order to return a page_obj into the context
(http://code.djangoproject.com/browser/django/trunk/django/views/generic/list.py?rev=14864#L51).
If there is only one page, 'page_obj' is set to Non