[Answer]-Django – don't see my_error value in html

1👍

except Task.DoesNotExist:
    print 'here'
    tasks(request, my_error=u'Такой задачи нет. Возможно она была уже удалена')

should be

except Task.DoesNotExist:
    print 'here'
    return tasks(request, my_error=u'Такой задачи нет. Возможно она была уже удалена')

ps: paste the significant part of your code in the initial post, so other people may actually know what’s going on here withoud digging in comments (aka: paste the bit of view where tasks() is called)

Leave a comment