"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf.urls import url
from django.urls import include, path

from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic.base import RedirectView
from django.contrib.staticfiles.storage import staticfiles_storage
from django.contrib.auth import views as auth_views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^about/$', views.about, name='about'),
    url(r'^calendar/$', views.calendar, name='calendar'),
    url(r'^facilities/$', views.facilities, name='facilities'),
    url(r'^contact/$', views.contact, name='contact'),
    url(r'^programs/$', views.programs, name='programs'),
    url(r'^donate/$', views.donate, name='donate'),
    url(r'^profile/$', views.profile, name='profile'),
    url(r'^reservations/$', views.reservations, name='reservations'),
    url(r'^favicon\.ico$', RedirectView.as_view(url='/static/favicon/favicon.svg')),
    url(r'^login/$', auth_views.LoginView.as_view(template_name="registration/login.html"), name='login'),
    url(r'^logout/$', auth_views.LogoutView.as_view(), name='logout'),
   
]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
