Django

Code

Changeset 3688

Show
Ignore:
Timestamp:
08/30/06 23:31:54 (2 years ago)
Author:
adrian
Message:

Added note about 'request' variable name to docs/contributing.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/contributing.txt

    r3455 r3688  
    168168 
    169169          {{foo}} 
     170 
     171    * In Django views, the first parameter in a view function should be called 
     172      ``request``. 
     173 
     174      Do this:: 
     175 
     176          def my_view(request, foo): 
     177              # ... 
     178 
     179      Don't do this:: 
     180 
     181          def my_view(req, foo): 
     182              # ... 
    170183 
    171184    * Please don't put your name in the code. While we appreciate all