Archive for October, 2009

28Oct

Django Signals: The Rules

Posted by Elf Sternberg as django

I use Django signals a lot in my professional work, mostly to create specialized tables that track events in the ecosystem of social networking sites that I build.  For example, if I make a post on a social networking site, that causes an event that creates a signal.  That signal will be heard by, for […]

Do you have that one thing that you have to constantly look up? In python, to replace elements of a string, there are two operators.  One is a strictly linear search, the other uses regular expressions.  The regexp call to replace part of a string with another string is sub, and the string call to […]

14Oct

Rails-like environments with Django.

Posted by Elf Sternberg as django

I needed some rails-like environment settings using Django.  This is the quick and easy way to get that done.   First, after building your “settings.py” file, create an environment under your project root named “env“.   Move your settings.py file to this directory, rename it “development.py” Now, in your root directory, open up a new file named […]


Subscribe to Feed

Categories

Calendar

October 2009
M T W T F S S
« Sep   Nov »
 1234
567891011
12131415161718
19202122232425
262728293031