# Path: accounts/views.py
# def password_reset(request):
# def change_password(request):
#     def get_success_url(self):
# def login_view(request):
# def logout_view(request):
#     def form_valid(self, form):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, *args, **kwargs):
# class Register(CreateView):
# class ContactView(FormView):
# class WhaleUserDetail(DetailView):
# 
# Path: polls/views.py
# def home(request):
#     """Returns the home page."""
#     return render(request, 'polls/home.html')


from django.conf.urls import url
from accounts import views
from polls.views import home
from django.contrib.auth import views as auth_views

uuid4 = "[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}"
urlpatterns = [
    url(r'^login/$', views.login_view, name='login'),
    url(r'^logout/$', views.logout_view, name='logout'),
    url(r'^register/$', views.Register.as_view(), name='register'),
    url(r'^contact/$', views.ContactView.as_view(), name='contact'),

# Path: accounts/views.py
# def password_reset(request):
# def change_password(request):
#     def get_success_url(self):
# def login_view(request):
# def logout_view(request):
#     def form_valid(self, form):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, *args, **kwargs):
# class Register(CreateView):
# class ContactView(FormView):
# class WhaleUserDetail(DetailView):
# 
# Path: polls/views.py
# def home(request):
#     """Returns the home page."""
#     return render(request, 'polls/home.html')


# Path: accounts/urls.py
from django.conf.urls import url
from accounts import views
from polls.views import home
from django.contrib.auth import views as auth_views


uuid4 = "[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}"
urlpatterns = [
    url(r'^login/$', views.login_view, name='login'),
    url(r'^logout/$', views.logout_view, name='logout'),
    url(r'^register/$', views.Register.as_view(), name='register'),
    url(r'^contact/$', views.ContactView.as_view(), name='contact'),

    url(r'^$', home, name='home'),