« Older Home
Loading Newer »

Archive for November, 2008

Mimic propel’s update_at and created_at in Django models

by Dave Dash 29Nov08

One “trick” that propel offers you is tables with fields created_at and updated_at.

The fields are self explanatory and within Propel you just define them and they just do their business.

To simulate this in Django just do:

updated_at = models.DateTimeField(auto_now=True) created_at = models.DateTimeField(auto_now_add=True)

auto_now automatically sets a field to the current time, and auto_now_add only does this if the [...]

Django models: saving markdown

by Dave Dash 29Nov08

I love markdown. I write my blogs in markdown. For most user text areas in my web apps I support markdown and save both the markdown and the formatted text into my data store.

To do this I had to install markdown for python. For my Django projects I prefer downloading (or externally [...]


Where am I?

You are currently browsing the Spindrop weblog archives for the month November, 2008.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

November 2008
M T W T F S S
« Oct   Dec »
 12
3456789
10111213141516
17181920212223
24252627282930

need more help

If you found our tutorials and articles to be useful, but are still looking for more hands on help, consider hiring us. Find out more about how Spindrop can help you.