# Path: fossevents/users/views.py
# def login(request, *args, **kwargs):
#     if request.user.is_authenticated():
#         return HttpResponseRedirect(reverse('home'))
#     return django_login(request, template_name='users/login.html', *args, **kwargs)
# 
# def logout(request, *args, **kwargs):
#     auth_logout(request)
#     return HttpResponseRedirect(reverse('users:login'))


from django.conf.urls import url
from .views import login, logout


urlpatterns = [
    url(r'^login/$', login, name="login"),
    url(r'^logout/$', logout, name="logout"),

# Path: fossevents/users/views.py
# def login(request, *args, **kwargs):
#     if request.user.is_authenticated():
#         return HttpResponseRedirect(reverse('home'))
#     return django_login(request, template_name='users/login.html', *args, **kwargs)
# 
# def logout(request, *args, **kwargs):
#     auth_logout(request)
#     return HttpResponseRedirect(reverse('users:login'))


# Path: fossevents/users/urls.py
from django.conf.urls import url
from .views import login, logout



urlpatterns = [
    url(r'^login/$', login, name="login"),
    url(r'^logout/$', logout, name="logout"),

]