Morning everyone

Im using django logout() to end my sessions just like django docs says :

**views.py**

```
class Logout(View):
    def logout_view(request):
        logout(request) 
        return HttpResponseRedirect(reverse('cost_control_app:login'))

```

and im calling it from this url :

urls.py

```
url(r'^logout/$', views.Logout.as_view(), name = "logout"),

```

Buttttttt it's not working, when i do a trace i find that the function :

```
 def logout_view(request):

```

it's returning "none" and it's nos entering to execute the code inside...

Please help me !