Re: exists created_at or updated_at ?

2008-01-28 Thread Bastos
updated_at = models.DateTimeField(auto_now=True) created_at = models.DateTimeField(auto_now_add=True) On Jan 27, 1:54 pm, "Claudio Escudero" <[EMAIL PROTECTED]> wrote: > Anyone know if there is something like created_at or updated_at of Ruby on > Rails. > These fields are filled autom

Importing data using loaddata from exported data using dumpdata

2012-03-03 Thread Vincent Bastos
Hi, I am having trouble importing data using loaddata from a .json file that I created from a dumpdata export. I have a production application which runs MySQL on one server and a development machine which runs SQLite. I simple executed ./manage.py dumpdata > file.json on the production machine

How does Django handle Model Inheritance?

2007-04-17 Thread Raphael Melo de Oliveira Bastos Sales
Hi everyone, I'm a newcomer to this list, so be patient if this is a dumb question. I'd like to know how does DJango handle Model Inheritance. For example, if I do something like this and use PostgreSQL: class BaseModel( models.Model ): base_attribute = models.CharField() class Chi

Re: How does Django handle Model Inheritance?

2007-04-17 Thread Raphael Melo de Oliveira Bastos Sales
On 4/17/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 4/17/07, Raphael Melo de Oliveira Bastos Sales > <[EMAIL PROTECTED]> wrote: > > I'm a newcomer to this list, so be patient if this is a dumb > > question. I'd like to know how does