Changes between Version 49 and Version 50 of DjangoSpecifications/Core/Threading
- Timestamp:
- Apr 28, 2008, 3:59:25 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DjangoSpecifications/Core/Threading
v49 v50 14 14 == Introduction == 15 15 16 The main pattern of global variable usage in Django is ''use (read) `var` if initialized, otherwise initialize (write)'', where `var` can be a single value or element of a data structure. This is generally not thread-safe.16 The main pattern of global variable usage in Django is ''use `var` if initialized (read), otherwise initialize (write)'', where `var` can be a single value or element of a data structure. This is generally not thread-safe. 17 17 18 18 "Not thread-safe" has two broad subcategories in this case: