Oops.. My fault here. I just realized that everything is ok with tests, problem was with my ./manage.py shell session. Solution is to call:
>>> from django.test.utils import setup_test_environment >>> setup_test_environment() Thanks for your help. Jakub On 13 Sie, 20:31, eXt <[EMAIL PROTECTED]> wrote: > Yes, I know that. I use ./manage.py test. I'll add that my django is > latest version from trunk. Any more hints? > > Jakub > > On 13 Sie, 13:19, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > > > On 8/13/07, eXt <[EMAIL PROTECTED]> wrote: > > > > So here is a template and a context. Why I can't access it in my > > > doctest via response.template and response.context? > > > How are you running your doctest? > > > In order to capture the template rendering details, Django needs to > > add some instrumentation to the template rendering system. If you run > > your tests using ./manage.py test, this instrumentation is added > > automatically. If the instrumentation isn't installed (for example, if > > you are manually running your doctest), you will get 'no template, no > > context' returned through the test system. > > > Yours, > > Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---