Django logout logout error

in the process of learning Django, I encountered a problem that does not match the document case. Of course, it may also be an error caused by my own inability to use it. Paste the code and ask God to solve

.
   

I have found some similar problems on the Internet, but the solution is to change the code to OK, as an official document.


solution:


responsereturnHttpResponse

def logout_view(request):
    logout(request)
    return HttpResponse({})  response
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5a523-455a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5a523-455a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?