Re: Providing flatpages initial data

2010-02-19 Thread Timothy Kinney
Okay, I spent some more time with the flatpage and it works great. I just needed to understand the syntax a little better. I also thought that I needed to include a lot of cruft at the beginning of the dumpdata file that basically amounted to logs and session_ids. Taking them out worked fine. I

Re: Providing flatpages initial data

2010-02-19 Thread Timothy Kinney
I started playing with this last night and got about as far as you mentioned here. What I want to be able to do, though, is write a python script that writes an authentic json flatpage that I can import into the database. I have a large textfile full of names, items, and province information (for

Providing flatpages initial data

2010-02-19 Thread Rick Caudill
Hi all, I just came across a need to provide initial data for flatpages. I have read before that people have asked to do this. It is easier than thought :) 1. Create your content via the admin interface 2. Run 'python manage.py dumpdata flatpages > data.json' 3. When you want to provide the