Nick, Take a look at the satchmo_ functions provided by manage.py. There's several in there that will do what you want without going back to clonesatchmo.py (and in fact I'd recommend them over clonesatchmo if you are integrating satchmo into an existing site)
- Darren On Tuesday, June 5, 2012 10:50:58 PM UTC-5, Nick Mellor wrote: > > Hi all, > > Answered my own question. Alter: > > local_settings.py > > database settings in: > > ../satchmo/projects/skeleton > > before you run clonesatchmo.py. > > Thanks, > > Nick > > On Jun 6, 1:19 pm, Nick Mellor <[email protected]> wrote: > > Hi all, > > > > I've run clonesatchmo.py without problems using sqlite3, then changed > > the database to PostgreSQL, which I intend to use for DEV and > > production. > > > > python manage.py syncdb worked great and the store works first-off, > > this time using PostgreSQL. > > > > But syncdb doesn't copy over the 5000-odd bits of data using for > > internationalisation and other stuff. > > > > Sorry if this is a silly question, but can I run clonesatchmo.py and > > get it to populate a PostgreSQL database instead of SQLite? I'm still > > a bit new to Python/PostgreSQL and a look at the source code for > > clonesatchmo.py didn't immediately suggest a solution. > > > > Best wishes, > > > > Nick -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/P0er7m3L2msJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
