Skip to content

Commit 7093252

Browse files
committed
README rename your_template to your_view
1 parent aee70a7 commit 7093252

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ from django.http import HttpResponse
185185
from django.template import loader
186186

187187

188-
def your_template(request):
188+
def your_view(request):
189189
context = {}
190190
return HttpResponse(
191191
loader.get_template("your-template.html").render(context, request)
@@ -198,10 +198,10 @@ Include your replate in the list of urlpatterns
198198

199199
```python
200200
from django.urls import path
201-
from .views import your_template # define this view like any other HTML template
201+
from .views import your_view # define this view like any other HTML template
202202

203203
urlpatterns = [
204-
path("", your_template),
204+
path("", your_view),
205205
...
206206
]
207207
```

0 commit comments

Comments
 (0)