How to send context request in DRF Management Commands without request Object
I stuck now 2 days on this, for cache reasons I store data in memcache - Im collecting data with managemend-commands from django - if I collect data all the urls are relative - for absolute path i need to pass context to serializer - but I dont have this. How can I solve this problem to get the full path? Any Idea?
For the public view it works well - but if I develop with localhost then i have troubles with the urls.
I tryed fake a request object with requestfactory or testclient but not worked :D