[Fixed]-How can I send a request to a view from an admin command without hard coding the url

1👍

requests module needs the absolute url to post to. you need

url = 'http://%s%s' % (request.META['HTTP_HOST'], reverse('name-of-view'))     
requests.post(url, data=some_data)

Leave a comment