Django/Python Runtime Error: Maximum recursion depth exceeded
The problem is that django logout method is in your view logout method. So it calls itself and never ends.
So you may rename your view logout method as 'signout' or something like that.
Other way is import django logout with other name like below and called it in your logout method: from django.contrib.auth import logout as core_logout
You seem to be including blogapp.urls inside itself. Doesn't sound like a good idea.