I've been playing around with my settings file and have included a
DATE_FORMAT and a DATETIME_FORMAT setting.
DATETIME_FORMAT = 'j F Y H:i'
DATE_FORMAT = 'j F Y'
When using the date template filter on a date or datetime variable, I
get my dates formatted in the format set in DATE_FORMAT.
{{ my
Hi,
Thanks for the reference.
Access to the __doc__ property of a function is always done by first
importing the function and then calling the property.
What if I want to include the docstring of a function in the context
this same function returns?
should I simply import the views module again
29 am, Ned Batchelder wrote:
> Inside a function, the function is known by its own name. Just as you
> can call a function recursively by name, you can access its properties
> by name:
>
> def myview(request):
> """ My docstring """
&g
This is an error of mine that happened when transcribing my code to
the mail.
I DO call is_validate()
The issue here seems to be something I miss regarding the use of file
uploads together with formsets...
Regards, Stefan
On Mar 17, 5:06 pm, Alex Gaynor wrote:
> On Tue, Mar 17, 2009 at 11:09
I found the error in this post:
http://groups.google.com/group/django-users/browse_thread/thread/adf591a15786ca98
Feel a bit embarrassed...
Wasn't setting the enctype attribute in my form html tag...
Regards, Stefan
On 17 mar, 17:06, Alex Gaynor wrote:
> On Tue, Mar 17, 2009 at 11:09 AM, Stef
Hi!
Thanks for all your suggestions. I've been able to solve the issue.
Now the page reports to be executing roughly 80-90 SQL queries and is
performing well.
The problem was mainly in two places of my code where I was looping
through all the results of a related set for every row in a paged
obj
This does indeed seem to have relation with the contents of what is
being dumped to JSON.
My experience is that simply dumping the data of a db will result in a
file that will not be loadable "as is".
I understand that this doesn't mean that there is a problem with that
functionality.
When purg
7 matches
Mail list logo