Satchmo finally running

Woah, that wasn’t easy.

I managed to get it running using Django SVN trunk revision 8222 (pre-signals/dispatcher rewrite), and latest SVN Satchmo 1404.

It’s not easy on a PC to get the required files, got to be said.  Most of the easy_installs don’t work. 

I wasn’t sure where trml2pdf should be placed (install instructions: “put it where you want!” – thanks :-p).  I put the folder in python/site-packages, and tested with “import trml2pdf” at the python line.

Finally, all was running well and I started the shop, when I hit:
‘WSGIRequest’ object has no attribute ‘session’

This is because I used the recommended setting.py almost directly.  However, their setting-customize.py doesn’t include the “standard” stuff.  I’ve no idea why – it should have everything needed to run.  Anyway, it missed the middleware settings for the sessions.  My middleware settings now read:

MIDDLEWARE_CLASSES = (“django.middleware.locale.LocaleMiddleware”,
                      “django.middleware.common.CommonMiddleware”,
                      “django.contrib.sessions.middleware.SessionMiddleware”,
                      “django.middleware.doc.XViewMiddleware”,
                      “django.contrib.auth.middleware.AuthenticationMiddleware”,
                      “satchmo.shop.SSLMiddleware.SSLRedirect”,
                      “satchmo.recentlist.middleware.RecentProductMiddleware”)

I still have some outstanding errors for the languages.  I had to set my LANGUAGE_CODE to “us” – pretty odd, because that’s a country code.  Doh.  Plus, I want proper English (GB), and I’ll have to make sure I can do that.

I don’t know if that’s connected to the errors I got when doing:
python manage.py satchmo_load_l10n

But I ignored that and it still seems to be running :)

Final note:  For a Django App, that demo store is bloody ugly ;-P

Update: Site looks better now – had to set the MEDIA_URL to ‘/static/’

Like it? Hate it? Correct it! Tweet it!

Tags: ,

  • http://www.satchmoproject.com/ chris

    Thanks for the feedback. I’m glad you got it running but I’m sorry it took so long to get it running. Please submit a ticket with some suggestions for fixing the documentation. We’re always looking for ways to make it easier/cleaner to install.

    -Chris

  • http://www.satchmoproject.com chris

    Thanks for the feedback. I’m glad you got it running but I’m sorry it took so long to get it running. Please submit a ticket with some suggestions for fixing the documentation. We’re always looking for ways to make it easier/cleaner to install.

    -Chris

  • Blake St. Claire

    BTW, it’s tough to read those greenish labels on the green grass background.

    I’m stumped by the trml2pdf install too, but on a Linux (SLES10) box. I’ve put it in /usr/lib64/python2.4/site-packages/trml2pdf/ with and without a /usr/lib64/python2.4/site-packages.trml2pdf.pth with no luck. (Ditto with /usr/local/lib64/python2.4/site-packages.) Most other things were easy, although I had to get a newer python-mysql src rpm,

    When I run `python manage.py satchmo_check` it complains that trml2pdf was not found. (But it produced an __init__.pyc file in …/site-packages/trml2pdf/. It seems to have no trouble finding the other add-ons that are in those directories.

    I’m new to python so I’m momentarily stumped by this.

  • Blake St. Claire

    BTW, it’s tough to read those greenish labels on the green grass background.

    I’m stumped by the trml2pdf install too, but on a Linux (SLES10) box. I’ve put it in /usr/lib64/python2.4/site-packages/trml2pdf/ with and without a /usr/lib64/python2.4/site-packages.trml2pdf.pth with no luck. (Ditto with /usr/local/lib64/python2.4/site-packages.) Most other things were easy, although I had to get a newer python-mysql src rpm,

    When I run `python manage.py satchmo_check` it complains that trml2pdf was not found. (But it produced an __init__.pyc file in …/site-packages/trml2pdf/. It seems to have no trouble finding the other add-ons that are in those directories.

    I’m new to python so I’m momentarily stumped by this.

  • http://kenneth.kufluk.com/ Kenneth

    Yeah, it’s not so easy to read all this site. I’ll fix it one day. Promise.

    I got satchmo running on Linux, but my host enforces some of the setup on me. What I’ve found is that my lib/python2.5 directory is in the path, but the lib/python2.5/site-packages folder is not. Weird eh?

    So my solution was to get the trml2pdf folder into the right pathed folder.

    However, you’re in a “lib64″ directory. Maybe you need to change the #!/usr/bin/python directive at the top of the py files.

  • http://kenneth.kufluk.com Kenneth

    Yeah, it’s not so easy to read all this site. I’ll fix it one day. Promise.

    I got satchmo running on Linux, but my host enforces some of the setup on me. What I’ve found is that my lib/python2.5 directory is in the path, but the lib/python2.5/site-packages folder is not. Weird eh?

    So my solution was to get the trml2pdf folder into the right pathed folder.

    However, you’re in a “lib64″ directory. Maybe you need to change the #!/usr/bin/python directive at the top of the py files.

blog comments powered by Disqus