#19614 closed Bug (fixed)
Error in docs example
Reported by: | Dima Pravdin | Owned by: | Aymeric Augustin |
---|---|---|---|
Component: | Documentation | Version: | 1.5-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Small error in example about limiting access to logged-in users by the raw way from Django Docs (https://docs.djangoproject.com/en/1.5/topics/auth/default/#the-raw-way):
from django.shortcuts import render def my_view(request): if not request.user.is_authenticated(): return render('myapp/login_error.html')
The render function require Request argument:
https://docs.djangoproject.com/en/1.5/topics/http/shortcuts/#render
Change History (4)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In 74d72e21b405956bec9775b90e052e89f03a5e2e: