We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee70a7 commit 7093252Copy full SHA for 7093252
README.md
@@ -185,7 +185,7 @@ from django.http import HttpResponse
185
from django.template import loader
186
187
188
-def your_template(request):
+def your_view(request):
189
context = {}
190
return HttpResponse(
191
loader.get_template("your-template.html").render(context, request)
@@ -198,10 +198,10 @@ Include your replate in the list of urlpatterns
198
199
```python
200
from django.urls import path
201
-from .views import your_template # define this view like any other HTML template
+from .views import your_view # define this view like any other HTML template
202
203
urlpatterns = [
204
- path("", your_template),
+ path("", your_view),
205
...
206
]
207
```
0 commit comments