#19614: Error in docs example
-------------------------------+------------------------
     Reporter:  Dima Pravdin   |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.5-beta-1
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+------------------------
 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

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19614>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to