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:
https://docs.djangoproject.com/en/1.11/topics/testing/tools/#overriding-settings

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

Thanks.

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 
> https://stackoverflow.com/questions/27136048/django-unit-test-response-context-is-none
>  . 
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9dfbf9e5-c4e3-480b-bb47-201949005190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to