I am using Django SVN r7379.
I was returning a 'markup.py' object that contained unicode inside.
When the HTTP server of Django converted this object into a string, by
using the function 'str' --- thereby converting it with the system
encoding, which ignores the project's encoding --- it would cr
Hi,
get_previous_by, get_next_by methods -and probably others- use the
default manager to query the db. Most of the time we end up
`filtering` them to emulate a manager violating the DRY principle.
It would be nice if we could specify the manager, something like:
get_next_by_date(manager='live'
I'm -1 on this, I think the principal problem is that discourages
finding the best ways to solve the problems in django itself, one of
the main differences between django and other python web frameworks is
that Django offers it's own option at every level of the stack, and
people almost exclusivel
On Sat, Mar 29, 2008 at 9:09 AM, Rufman <[EMAIL PROTECTED]> wrote:
> How and when do the django newforms validate forms and add errors to
> the errors dictionary?
As soon as you inspect ``form.errors`` or ``form.is_valid``.
In the future, please ask this question on django-users; django-dev is
Hey Guys
How and when do the django newforms validate forms and add errors to
the errors dictionary?
Im trying to make a dynamic form, so I add the data after creating the
form class and adding the attributes. THis means that I will need to
'manually' call the form validation.
Thanks for the h
> Indeed. If two applications each rely on different QuerySet classes,
> something more fine-grained than a global setting will be needed for
> them to peaceably coexist; I'd much prefer some standardized way of
> extending the functionality, something we already have to an extent
> via the abilit