Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added 'Session object guidlines' section to docs/sessions.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 99d8bb34fe034161c9f6ca7587a0f8b87a2f1236 1 parent 21c4526
Adrian Holovaty authored August 17, 2005

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

  1. 12  docs/sessions.txt
12  docs/sessions.txt
@@ -63,6 +63,18 @@ It also has these two methods:
63 63
 You can edit ``request.session`` at any point in your view. You can edit it
64 64
 multiple times.
65 65
 
  66
+Session object guidelines
  67
+-------------------------
  68
+
  69
+    * Use normal Python strings as dictionary keys on ``request.session``. This
  70
+      is more of a convention than a hard-and-fast rule.
  71
+
  72
+    * Session dictionary keys that begin with an underscore are reserved for
  73
+      internal use by Django.
  74
+
  75
+    * Don't override ``request.session`` with a new object, and don't access or
  76
+      set its attributes. Use it like a Python dictionary.
  77
+
66 78
 Examples
67 79
 --------
68 80
 

0 notes on commit 99d8bb3

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