Hi Chris, Firstly thanks for the help. Secondly, I'm very impressed by the work you are doing and the effort you are putting in, keep it up, hopefully once I am more familiar with django/satchmo I can also start helping :)
Anyway, I am using the latest SVN trunks (I think) as I am able to import django and satchmo_store without error in python and get the following versions... >>> satchmo_store.get_version() u'0.9-pre-SVN-unknown' >>> django.get_version() u'1.1 pre-alpha SVN-9814' ...mod_python is installed correctly as far as I am aware, and satchmo checks seems ok... $ python manage.py satchmo_check Checking your satchmo configuration. Using Django version 1.1 pre-alpha SVN-9814 Using Satchmo version 0.9-pre-SVN-unknown Your configuration has no errors. ...However, after further testing I find the same problem (add category) also occurs in the satchmo example projects (e.g. large) running on the development server (python manage.py runserver 0.0.0.0:8000). All the other sections seem OK, just adding a category causes it to break. The same thing happens (when trying to add a category) on my project on the development server. I think it may be related to this ticket I just read... http://www.satchmoproject.com/trac/ticket/707 ...would you advise following the same fix, or an alternate approach? Thanks. On Feb 6, 3:50 am, Chris Moffitt <[email protected]> wrote: > Can you confirm that you are running the latest version of Satchmo and > Django? The reason I ask is that the error you are getting seems to be > related to using an older version of Satchmo trunk with a recent Django > trunk. Double check your environment for modpython and make sure you're not > pulling in an old Satchmo version. > > As far as the admin not displaying properly, you need to review your > mod_python configuration. Personally, if you have the option, I think it's > easier to get things running with fcgi than with mod_python. > > -Chris > > > > > > On Thu, Feb 5, 2009 at 8:51 PM, bab <[email protected]> wrote: > > > Hi, > > > I am new to Satchmo and Django and have been trying to get a store > > online. I have installed Satchmo (as per > >http://www.satchmoproject.com/docs/svn/new_installation.html) using > > the setup below... > > > Ubuntu 8.04 > > Apache > > mod_python > > PostgreSQL > > lastest SVN trunk of Django > > latest SVN trunk of Satchmo > > (+ other requisites for Satchmo and Django as per article) > > > ...basically I cannot get the admin site for Satchmo to work > > correctly. > > > I can run the example large project in the development server and the > > admin site is fine, and when I run my project in the development > > server it looks fine but breaks if I try to add a category. > > > When I run my project under Apache the admin section looks different > > i.e. like it is missing the stylesheet, and again breaks when I try to > > add a new category. > > > Below is the traceback... > > > Environment: > > > Request Method: GET > > Request URL:http://192.168.122.170/admin/product/category/add/ > > Django Version: 1.1 pre-alpha SVN-9814 > > Python Version: 2.5.2 > > Installed Applications: > > ['satchmo_store.shop', > > 'django.contrib.admin', > > 'django.contrib.admindocs', > > 'django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.comments', > > 'django.contrib.sessions', > > 'django.contrib.sitemaps', > > 'django.contrib.sites', > > 'registration', > > 'sorl.thumbnail', > > 'satchmo', > > 'keyedcache', > > 'livesettings', > > 'satchmo_store.contact', > > 'product', > > 'shipping', > > 'payment', > > 'payment.modules.giftcertificate', > > 'satchmo_store.contact.supplier', > > 'satchmo_utils', > > 'satchmo_utils.thumbnail', > > 'l10n', > > 'tax', > > 'tax.modules.no', > > 'tax.modules.area', > > 'tax.modules.percent', > > 'satchmo_ext.recentlist', > > 'satchmo_ext.wishlist', > > 'satchmo_ext.upsell', > > 'satchmo_ext.productratings', > > 'app_plugins'] > > 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') > > > Traceback: > > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" > > in get_response > > 86. response = callback(request, *callback_args, > > **callback_kwargs) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" > > in root > > 450. return self.model_page(request, *url.split('/', > > 2)) > > File "/usr/lib/python2.5/site-packages/django/views/decorators/ > > cache.py" in _wrapped_view_func > > 44. response = view_func(request, *args, **kwargs) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" > > in model_page > > 469. return admin_obj(request, rest_of_url) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > > options.py" in __call__ > > 795. return self.add_view(request) > > File "/usr/lib/python2.5/site-packages/django/db/transaction.py" in > > _commit_on_success > > 238. res = func(*args, **kw) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > > options.py" in add_view > > 550. for FormSet in self.get_formsets(request): > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > > options.py" in get_formsets > > 318. yield inline.get_formset(request, obj) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > > options.py" in get_formset > > 861. return inlineformset_factory(self.parent_model, > > self.model, **defaults) > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in > > inlineformset_factory > > 564. fields = fields_for_model(model, fields, exclude, > > formfield_callback).keys() > > File "/usr/lib/python2.5/site-packages/django/forms/models.py" in > > fields_for_model > > 162. formfield = formfield_callback(f) > > File "/usr/lib/python2.5/site-packages/django/utils/functional.py" in > > _curried > > 55. return _curried_func(*(args+moreargs), **dict(kwargs, > > **morekwargs)) > > File "/usr/lib/python2.5/site-packages/Satchmo-0.9_pre-py2.5.egg/ > > product/admin.py" in formfield_for_dbfield > > 26. return db_field.formfield(**kwargs) > > File "/usr/lib/python2.5/site-packages/django/db/models/fields/ > > files.py" in formfield > > 257. return super(ImageField, self).formfield(**defaults) > > File "/usr/lib/python2.5/site-packages/django/db/models/fields/ > > files.py" in formfield > > 226. return super(FileField, self).formfield(**defaults) > > File "/usr/lib/python2.5/site-packages/django/db/models/fields/ > > __init__.py" in formfield > > 333. return form_class(**defaults) > > File "/usr/lib/python2.5/site-packages/django/forms/fields.py" in > > __init__ > > 452. super(FileField, self).__init__(*args, **kwargs) > > > Exception Type: TypeError at /admin/product/category/add/ > > Exception Value: __init__() got an unexpected keyword argument > > 'request' > > > Any help or guidance is much appreciated. > > > Thanks, > > > Bab. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
