Thanks, this is perfect.

On Mar 4, 2:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-03-04 at 01:01 +0000, [EMAIL PROTECTED] wrote:
> > I am looking for some way to add initial Flatpages data to my app.  I
> > am open to either SQL or Django ORM.  The pattern of <app name>/sql/
> > <model name>.sql doesn't seem to apply to Flatpages.  How can I do
> > this?
>
> Try 
> this:http://www.bright-green.com/blog/2006_07_12/initialising_application_...
>
> I couldn't access the site when I checked the link just now; assuming
> it's still up, it has a Python-based technique for initialising models
> using the post_syncdb signal that is dispatched. Alternatively, just use
> the hint in the last sentence: hook up a listener for post_syncdb -- it
> is passed the apps and created models -- and when the flatpage models
> have been created, start populating them.
>
> Regards,
> Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to