« Older Home
Loading Newer »

Tag Archive for 'symfony'

Versioning Django Models

by Dave Dash 13Feb09

In symfony, versioning a model was not terribly difficult. I had my own specialized brute-force way of doing this.

In my experience it’s been a lot easier to write python code than PHP code, so naturally I figured this would be an easy task. It was not. I suspect that it was not [...]

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 [...]


Where am I?

You are currently browsing the Spindrop weblog archives for 'symfony' tag.

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

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

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.