MySQLdb Exceptions

2009-06-11 Thread jrivero

Hi!

I have one mysqldb exception on insert or update in some model with
message [1] and can not find it. Django does not catch and return
generic error 500.

[1]: Exception exceptions.TypeError: "'NoneType' object is not
callable" in > ignored

I suspect that appears after a change in the properties of any table.

Some idea for find? Is possible catch all exception commit-query's and
logging the query?

Thanks!
Jordi.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Comments in reversed order

2008-10-24 Thread jrivero

yes! but the previous solution was useful to paginate the result with
a another templatetag

{% get_comment_list for entry as comment_list reversed %}
{% paginate comment_list 10 as page using comment_list_page %}
{% for comment in comment_list_page %}
  comment.comment
{% endfor %}

what method use you? generic object-list with a paginated?

Thanks!

Jordi.


On 22 oct, 14:26, Dmitry Dzhus <[EMAIL PROTECTED]> wrote:
> jrivero wrote:
> > Is possible obtain the comments of django.contrib in reversed order?
>
> > In old version:
> > {% get_free_comment_list for workgroups.workgroup group.id as
> > comment_list reversed %}
>
> > But in new version the templatetag not have control of this parameter.
> > The method for order is other?
>
> I suppose that you obtain comments to loop over the list, displaying
> comments one-by-one on your page. You may use `reversed` keyword in `{%
> for %}` tag then, for example:
>
> {% get_comment_list for entry as entry_comments %}
> {% for comment in entry_comments reversed %}
> comment.comment
> {% endfor %}
> --
> Happy Hacking.
>
> http://sphinx.net.ru
> む
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Comments in reversed order

2008-10-21 Thread jrivero

Is possible obtain the comments of django.contrib in reversed order?

In old version:
{% get_free_comment_list for workgroups.workgroup group.id as
comment_list reversed %}

But in new version the templatetag not have control of this parameter.
The method for order is other?

Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Suggestion for developers using code-google

2008-08-28 Thread jrivero

Is great to find so much django apps code in google-code, but it would
better if the code was labelled with the version of django for which
this done.

Examples:
django-0.96, django-0.97, django-1.0b1, django-1.0...

Regards,
Jordi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---