Clonesatchmo.py with PostgreSQL

24 views
Skip to first unread message

Nick Mellor

unread,
Jun 5, 2012, 11:19:00 PM6/5/12
to Satchmo users
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

Nick Mellor

unread,
Jun 5, 2012, 11:50:58 PM6/5/12
to Satchmo users
Hi all,

Answered my own question. Alter:

local_settings.py

database settings in:

../satchmo/projects/skeleton

before you run clonesatchmo.py.

Thanks,

Nick

Darren Hollenbeck

unread,
Jun 7, 2012, 1:35:53 PM6/7/12
to satchm...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages