Hello Satchmo users.
Got it to work by running
python manage.py migrate --list
which gave me information for the migrate commands:
Wed, 04 Aug 2010 01:44:55 root INFO Satchmo Started
Wed, 04 Aug 2010 01:44:55 root INFO Satchmo Started
Wed, 04 Aug 2010 01:44:55 tiered.config DEBUG loaded
Wed, 04 Aug 2010 01:44:55 tieredweight.config DEBUG loaded
Wed, 04 Aug 2010 01:44:55 shop.listeners DEBUG Added default shop
listeners
/usr/lib/pymodules/python2.6/registration/models.py:4:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
import sha
Wed, 04 Aug 2010 01:44:55 satchmo_toolbar DEBUG Satchmo toolbar ready
product
(*) 0001_initial
(*) 0002_add_attributeoption
(*) 0003_add_productattribute_option
(*) 0004_remove_productattribute_name
(*) 0005_fix_attributeoption_error_default_spelling
(*) 0006_custom_textfield_add_constraint
(*) 0007_add_discount_valid_products_field
(*) 0008_remove_discount_validproducts_field
(*) 0009_add_categoryattributes
(*) 0010_add_discountable_categories
(*) 0011_split_products
( ) 0012_update_contenttypes
configurable
( ) 0001_split
( ) 0002_update_contenttypes
custom
( ) 0001_split
( ) 0002_update_contenttypes
downloadable
( ) 0001_split
( ) 0002_update_contenttypes
subscription
( ) 0001_split
( ) 0002_update_contenttypes
then I used the commands:
python manage.py migrate configurable
python manage.py migrate custom
python manage.py migrate downloadable
python manage.py migrate subscription
python manage.py migrate product 0012
then:
python manage.py satchmo_rebuild_pricing
I hope this is correct. Please let me know if I missed anything.
Thank you.
GuyBrush wrote:
Thank you Chris.
I'm now having another problem.
I checked the DB and confirmed configurable_configurableproduct table
is missing.
How should I fix this?
Thank you!
Environment:
Request Method: GET
Request URL: http://localhost:8000/product/fruit-crate/
Django Version: 1.2.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.sites',
'satchmo_store.shop',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.comments',
'django.contrib.sessions',
'django.contrib.sitemaps',
'registration',
'sorl.thumbnail',
'keyedcache',
'livesettings',
'l10n',
'satchmo_utils.thumbnail',
'satchmo_store.contact',
'tax',
'tax.modules.no',
'tax.modules.area',
'tax.modules.percent',
'shipping',
'satchmo_store.contact.supplier',
'shipping.modules.tiered',
'shipping.modules.tieredweight',
'satchmo_ext.newsletter',
'satchmo_ext.recentlist',
'product',
'product.modules.configurable',
'product.modules.custom',
'satchmo_ext.product_feeds',
'satchmo_ext.brand',
'payment',
'payment.modules.purchaseorder',
'payment.modules.giftcertificate',
'payment.modules.authorizenet',
'satchmo_ext.satchmo_toolbar',
'satchmo_utils',
'shipping.modules.tieredquantity',
'satchmo_ext.tieredpricing',
'debug_toolbar',
'app_plugins',
'large.localsite',
'django.contrib.flatpages',
'south']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'threaded_multihost.middleware.ThreadLocalMiddleware',
'satchmo_store.shop.SSLMiddleware.SSLRedirect',
'satchmo_ext.recentlist.middleware.RecentProductMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in
get_response
100. response = callback(request, *callback_args,
**callback_kwargs)
File
"/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_2-py2.6.egg/product/views/__init__.py"
in get_product
125. subtype_names = product.get_subtypes()
File
"/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_2-py2.6.egg/product/models.py"
in get_subtypes
1027. subclass = getattr(self, subtype.lower())
File "/usr/lib/pymodules/python2.6/django/db/models/fields/related.py"
in __get__
226. rel_obj =
self.related.model._base_manager.using(db).get(**params)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in get
336. num = len(clone)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in __len__
81. self._result_cache = list(self.iterator())
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in iterator
269. for row in compiler.results_iter():
File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py"
in results_iter
672. for rows in self.execute_sql(MULTI):
File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py"
in execute_sql
727. cursor.execute(sql, params)
File "/usr/lib/pymodules/python2.6/django/db/backends/util.py" in execute
15. return self.cursor.execute(sql, params)
File "/usr/lib/pymodules/python2.6/django/db/backends/mysql/base.py"
in execute
86. return self.cursor.execute(query, args)
File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in execute
166. self.errorhandler(self, exc, value)
File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py" in
defaulterrorhandler
35. raise errorclass, errorvalue
Exception Type: DatabaseError at /product/fruit-crate/
Exception Value: (1146, "Table
'my_store.configurable_configurableproduct' doesn't exist")
Chris Moffitt wrote:
You need to add the various product modules to your settings. Here's
what I have in my test env:
'product',
'product.modules.configurable',
'product.modules.custom',
'product.modules.downloadable',
'product.modules.subscription',
-Chris
--
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.