<filename>CL_final_project/urls.py
"""CL_final_project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/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.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic.base import TemplateView
from animal_shelters.views import SignUpView, AccountView, SheltersView, AddShelterAnimalsView, \
    ShelterAnimalsView, OwnerAnimalsView, EditShelterAnimalsView, FoodView, AddFoodView, \
    AnimalTypeView, AddAnimalTypeView, CareView, AddCareView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/', include('django.contrib.auth.urls')),
    path('', TemplateView.as_view(template_name='home.html'), name='home'),
    path('accounts/signup/', SignUpView.as_view(), name='signup'),
    path('account', AccountView.as_view(), name='account'),
    path('shelters', SheltersView.as_view(), name='shelters'),
    path('shelter/animals/add', AddShelterAnimalsView.as_view(), name='add-shelter-animals'),
    path('shelter/animals/<int:shelter_id>', ShelterAnimalsView.as_view(), name='shelter-animals'),
    path('owner/animals', OwnerAnimalsView.as_view(), name='owner-animals'),
    path('owner/animals/edit/<int:animal_id>', EditShelterAnimalsView.as_view(),
         name='owner-animals-edit'),
    path('food', FoodView.as_view(), name='food'),
    path('food/add', AddFoodView.as_view(), name='add-food'),
    path('type', AnimalTypeView.as_view(), name='type'),
    path('type/add', AddAnimalTypeView.as_view(), name='add-type'),
    path('care/<int:animal_id>', CareView.as_view(), name='care'),
    path('care/add/<int:animal_id>', AddCareView.as_view(), name='add-care')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

<filename>CL_final_project/urls.py
"""CL_final_project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/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.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic.base import TemplateView
from animal_shelters.views import SignUpView, AccountView, SheltersView, AddShelterAnimalsView, \
    ShelterAnimalsView, OwnerAnimalsView, EditShelterAnimalsView, FoodView, AddFoodView, \
    AnimalTypeView, AddAnimalTypeView, CareView, AddCareView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/', include('django.contrib.auth.urls')),
    path('', TemplateView.as_view(template_name='home.html'), name='home'),
    path('accounts/signup/', SignUpView.as_view(), name='signup'),
    path('account', AccountView.as_view(), name='account'),
    path('shelters', SheltersView.as_view(), name='shelters'),
    path('shelter/animals/add', AddShelterAnimalsView.as_view(), name='add-shelter-animals'),
    path('shelter/animals/<int:shelter_id>', ShelterAnimalsView.as_view(), name='shelter-animals'),
    path('owner/animals', OwnerAnimalsView.as_view(), name='owner-animals'),
    path('owner/animals/edit/<int:animal_id>', EditShelterAnimalsView.as_view(),
         name='owner-animals-edit'),
    path('food', FoodView.as_view(), name='food'),
    path('food/add', AddFoodView.as_view(), name='add-food'),
    path('type', AnimalTypeView.as_view(), name='type'),
    path('type/add', AddAnimalTypeView.as_view(), name='add-type'),
    path('care/<int:animal_id>', CareView.as_view(), name='care'),
    path('care/add/<int:animal_id>', AddCareView.as_view(), name='add-care')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

CL_final_project URL Configuration  The `urlpatterns` list routes URLs to views. For more information please see:     https://docs.djangoproject.com/en/3.2/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'))