How are you running your tests? (django-admin test does all this for you…)


> On 20 Aug 2018, at 10:16, Alexander Lamas <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> I actually, just found out that I have to add these 2 lines in the beginning 
> of my test file.
> 
> import django
> django.setup()
> 
> then everything works as expected.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to