harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-3718harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-3718Title: How to expose a Django app index view under a namespace at /tools/product_curator/ (reverse and resolve tests)
Body: I’m building a small Django app and I want a single index view available at the URL prefix /tools/product_curator/. The view should be exposed via the URL namespace product_curator so that reverse("product_curator:index") yields "/tools/product_curator/" and resolving "/tools/product_curator/" maps to the view "product_curator:index".
Technical requirements
Create a Django app named product_curator with:
Wire the app into the project URL configuration so that the index view is served under the prefix /tools/product_curator/ and is namespaced as product_curator:
Ensure the Django project settings include the app in INSTALLED_APPS.
The solution should not rely on templates or database interactions; a plain HttpResponse is sufficient.
No changes to the provided tests are required. The implemented code should make the provided tests pass.
Code you’ll need to implement
product_curator/views.py from django.http import HttpResponse def index(request): return HttpResponse("OK")
product_curator/urls.py from django.urls import path from .views import index
app_name = "product_curator"
urlpatterns = [ path("", index, name="index"), ]
project/urls.py (example wiring) from django.urls import path, include
urlpatterns = [ path("tools/product_curator/", include(("product_curator.urls", "product_curator"), namespace="product_curator")), ]
settings.py (INSTALLED_APPS) INSTALLED_APPS = [ # ... "product_curator", ]
Expected behavior
If you need to see this in action, include the above files in a Django project and run the server; the tests that rely on reverse/resolve should pass without modifying any tests.