Source

oweb / views.py

lablinux 5b05f16 







1
2
3
4
5
6
7
8
9
from django.contrib.auth import logout
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse

def logout_view(request):
    logout(request)
    return HttpResponseRedirect(reverse ('contacts-index'))