I'm new to Satchmo / Python / Django and wanted to practice modifying the YAML files which are provided for the demo store, and then recreate the demo store (using the modified data).
Unfortunately, I have managed to nuke the demo store and (at present) am not sure how to create it. Here's what I've done: # export DJANGO_SETTINGS_MODULE=store.settings # /usr/bin/python /path/to/my/store/manage.py shell Then, at the Python prompt: >>> from load_data import * >>> eraseDB(False) Which succeeds in deleting the Demo Store. Working from the source, I then attempted calls to >>> init_and_install() >>> load_data() (also with help from http://www.llaisdy.com/blog/2008/03/21/installing-satchmo/). However, I was unable to recreate the demo store. init_and_install() succeeds, however, "load_data()" results in: Traceback (most recent call last): File "<console>", line 1, in <module> File "/root/src/satchmo/satchmo/projects/load_data.py", line 110, in load_data from product.models import Product, Price, ConfigurableProduct, ProductVariation, Category, OptionGroup, Option, ProductImage#, DownloadableProduct ImportError: cannot import name ConfigurableProduct Working from output of the "init_and_install" command, I attempted "manage.py migrate". However this failed with the output provided below. I think this issue may be because I've installed "South" following the demo store setup, and running into trouble with DB "migrations" (even though I thought that I've deleted all my store data with eraseDB() ? If someone could please advise how I recover the store (albeit demo) that would be appreciated. Thank you, Patrick ---------------- Output of manage.py migrate shlib module instead import sha Traceback (most recent call last): File "/satchmoStores/coochykid/store/manage.py", line 27, in <module> execute_manager(settings) File "/usr/local/lib/python2.6/dist-packages/django/core/management/ __init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/dist-packages/django/core/management/ __init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/dist-packages/django/core/management/ base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/local/lib/python2.6/dist-packages/django/core/management/ base.py", line 220, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/ south/management/commands/migrate.py", line 105, in handle ignore_ghosts = ignore_ghosts, File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/ south/migration/__init__.py", line 158, in migrate_app Migrations.calculate_dependencies() File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/ south/migration/base.py", line 227, in calculate_dependencies migration.calculate_dependencies() File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/ south/migration/base.py", line 355, in calculate_dependencies for migration in self._get_dependency_objects("depends_on"): File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/ south/migration/base.py", line 339, in _get_dependency_objects raise exceptions.DependsOnUnmigratedApplication(self, app) south.exceptions.DependsOnUnmigratedApplication: Migration 'product: 0011_split_products' depends on unmigrated application 'downloadable'. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. 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.
