Author: adrian
Date: 2006-08-30 23:31:54 -0500 (Wed, 30 Aug 2006)
New Revision: 3688
Modified:
django/trunk/docs/contributing.txt
Log:
Added note about 'request' variable name to docs/contributing.txt
Modified: django/trunk/docs/contributing.txt
===================================================================
--- django/trunk/docs/contributing.txt 2006-08-31 04:11:46 UTC (rev 3687)
+++ django/trunk/docs/contributing.txt 2006-08-31 04:31:54 UTC (rev 3688)
@@ -168,6 +168,19 @@
{{foo}}
+ * In Django views, the first parameter in a view function should be called
+ ``request``.
+
+ Do this::
+
+ def my_view(request, foo):
+ # ...
+
+ Don't do this::
+
+ def my_view(req, foo):
+ # ...
+
* Please don't put your name in the code. While we appreciate all
contributions to Django, our policy is not to publish individual
developer names in code -- for instance, at the top of Python modules.
--~--~---------~--~----~------------~-------~--~----~
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 this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---