i have come up with one of the most interesting query i have ever
seen.
I want to do this :
products = products.filter(productdetail__detail_value__gte =
first_value)
products = products.filter(productdetail__detail_value__lte =
second_value)
where first_value and second_value are integers and
I have search far and wide for some help regarding the Internal Error
and i can't find any help. I have absolutely no idea why this is
showing it doesn't make any sens. I just want a way to catch it but
that is impossible. I would appreciate any help.
Traceback:
File "C:\Python26\Lib\site-package
i actually found a solution. i don't know what the problem is... and
it wouldn't mater anyway. I just wanted to catch and show a message
about it. You should you something like this:
from django.db import transaction
@transaction.commit_manually
def view(request):
try:
#do something w
3 matches
Mail list logo