Done, and gets things smart.
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 [...]
20Oct
Posted by Elf Sternberg as personal, programming, python
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 [...]
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 [...]