Re: Problem with loading fixture in testcase

2009-05-29 Thread motard
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

Re: Problem with performance on a django site

2009-05-29 Thread motard
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

Re: Problem with formsets and uploading of files

2009-03-17 Thread motard
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

Re: Problem with formsets and uploading of files

2009-03-17 Thread motard
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

Re: Docstring documentation

2009-03-02 Thread motard
;"" >        help = myview.__doc__ > > --Ned. > > > > > > motard wrote: > > 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

Re: Docstring documentation

2009-02-27 Thread motard
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

Re: Problems with locale of dates queryset

2009-01-08 Thread motard
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. {{