Wednesday, October 31, 2018

Re: Django unit test - response context is None

Hi Jason,

Thanks for your prompt response. 

I was using Django TestCase but it wasn't working then. Hence, I resorted to unittest as shown in Django 1.11 documentation. Also, the attribute was working fine in django shell. 

Please refer to the documentation here:

I will check the link you have provided for the solution.


On Wednesday, October 31, 2018 at 6:19:40 PM UTC+5:30, Jason wrote:
Two things I can see:

you should be inheriting from TestCase in django.test, not unittest.  
Second, you should find your answer at . I believe the attribute you're trying to access was deprecated in django 1.8 and was probably removed in 1.11

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment