Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d9883e1dec9c80c49749f798890ae5a3efd781f0 1 parent 22303d6
Adrian Holovaty authored August 31, 2006

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. 13  docs/contributing.txt
13  docs/contributing.txt
@@ -168,6 +168,19 @@ Please follow these coding standards when writing code for inclusion in Django:
168 168
 
169 169
           {{foo}}
170 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
+              # ...
  183
+
171 184
     * Please don't put your name in the code. While we appreciate all
172 185
       contributions to Django, our policy is not to publish individual
173 186
       developer names in code -- for instance, at the top of Python modules.

0 notes on commit d9883e1

Please sign in to comment.
Something went wrong with that request. Please try again.