# Path: polls/views.py
# def home(request):
#     """Returns the home page."""
#     return render(request, 'polls/home.html')


from django.conf.urls import  include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from polls.views import home
from django.conf.urls import handler400,handler403,handler404,handler500

handler400 = 'polls.views.bad_request'
handler403 = 'polls.views.permission_denied'
handler404 = 'polls.views.page_not_found'
handler500 = 'polls.views.server_error'

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^polls/', include('polls.urls')),
    url(r'^accounts/', include('accounts.urls')),

# Path: polls/views.py
# def home(request):
#     """Returns the home page."""
#     return render(request, 'polls/home.html')


# Path: whale4/urls.py
from django.conf.urls import  include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from polls.views import home
from django.conf.urls import handler400,handler403,handler404,handler500


handler400 = 'polls.views.bad_request'
handler403 = 'polls.views.permission_denied'
handler404 = 'polls.views.page_not_found'
handler500 = 'polls.views.server_error'

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^polls/', include('polls.urls')),
    url(r'^accounts/', include('accounts.urls')),

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