From e12a490497543e61e8a0b4f14b9460c5fbac63c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Wed, 21 Jun 2023 15:21:43 +0200 Subject: [PATCH] wip --- content/django-view-decorator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/django-view-decorator.md b/content/django-view-decorator.md index 8b3e9a3..7842fce 100644 --- a/content/django-view-decorator.md +++ b/content/django-view-decorator.md @@ -211,7 +211,7 @@ This opens up a quite nifty possibility of injecting URLs into a namespace from name="custom-view" ) def custom_view(request: HttpRequest) -> HttpResponse: - return HttpResponse("I'm in another namespace") + return HttpResponse("I'm a view in the app_1 namespace defined in another views file.") Now we can treat `custom_view` as if it was a part of the `app_1` namespace. Ie. `reverse("app_1:custom-view")` would give us `app_1/my-custom-view/`. Neat!