1👍
✅
Not all of the code paths result into HttpResponse
being returned. For example, if the method is not POST
or the user is not authenticated, the view returns nothing (None
).
Source:stackexchange.com