Adds the dashboard view, template, URL routing, and tests. Also upgrades Django from 5.1.15 to 5.2.1 to fix a Python 3.14 incompatibility in template context copy that prevented view tests from running.
18 lines
529 B
Python
18 lines
529 B
Python
from django.urls import path
|
|
from plants.views import dashboard
|
|
|
|
# Stub views for URLs referenced in templates — replaced in later tasks
|
|
from django.http import HttpResponse
|
|
|
|
|
|
def _stub(request, *args, **kwargs):
|
|
return HttpResponse('stub')
|
|
|
|
|
|
urlpatterns = [
|
|
path('', dashboard.dashboard, name='dashboard'),
|
|
path('plants/', _stub, name='plant_list'),
|
|
path('plants/add/', _stub, name='plant_add'),
|
|
path('plants/<int:pk>/', _stub, name='plant_detail'),
|
|
path('pruning/', _stub, name='pruning_calendar'),
|
|
]
|