Code for 2008
- Oct1
-
manage.py
Modified manage.py that again uses the DJANGO_SETTINGS_MODULE
- Sep6
-
Set DJANGO_SETTINGS_MODULE
source: Juice Analytics
"Here's a bash function I use for Django development to quickly set DJANGO_SETTINGS_MODULE."
- Aug31
-
Lazy Descriptors
source: Just a little Python: Lazy Descriptors
"The descriptor is designed to be used as a decorator, and will save the decorated function and its name. When the descriptor is accessed, it will calculate the value by calling the function and save the calculated value back to the object's dict. Saving back to the object's dict has the additional benefit of preventing the descriptor from being called the next time the property is accessed."