1👍
If you just want to call the view and you don’t really care about the answer, simply do:
return HttpResponse('')
Each django view must return a HttpResponse object. This object doesn’t necessarily need to be text/html, you can also return an image with it if you want – but if I understand your question correctly, then the above return statement should be enough.
👤samu
Source:stackexchange.com