I've actually been working on a document on how to install Satchmo
since i don't like the "official" instructions. Some co-workers of
mine were having problems installing as well. Here's how I set up my
stuff:

1.) Make sure you have Django 1.0.x installed
2.) Install all dependencies
3.) Download the latest Satchmo from trunk with the command: svn co
svn://satchmoproject.com/satchmo/trunk satchmo_project (lets say you
were in the /usr/home/shankar directory, this will make /usr/home/
shankar/satchmo_project)
4.) Now that you have downloaded the latest src tree, you have to add
it to your python path. Find your site packages directory (in your
case /usr/lib/python2.5/site-packages/ and create a new file in there
called "satchmo_project.pth". The contents of this file should be the
following:

/usr/home/shankar/satchmo_project/satchmo/apps/

This will add all of the apps into your python path. Alternatively you
can just ln -s the apps directory into site pacakages, but i find
the .pth file cleaner.

5.) Now that you have satchmo installed, you just have to add it into
a project.

To do that:

1.) Start a new project (or use an old one) "django-admin.py
startproject mystore
2.) edit your settings.py file and make the following changes:
   a.) add the following to MIDDLEWARE_CLASSES
        'threaded_multihost.middleware.ThreadLocalMiddleware',
        'satchmo_store.shop.SSLMiddleware.SSLRedirect',
   b.) add the following to CONTEXT_PROCESSORS
        'satchmo_store.shop.context_processors.settings',
   c.) add the following to AUTHENTICATION_BACKENDS
        'satchmo_store.accounts.email-auth.EmailBackend',
        'django.contrib.auth.backends.ModelBackend',
   d.) make sure to set a TEMPLATE_DIRS
        i personally use: os.path.join(DIRNAME,'templates'), (where
DIRNAME is the directory of my project)
   e.) finally... just install all the satchmo related apps to
INSTALLED_APPS (note: i have commented out optional ones... i hope!):
        'satchmo_store.shop',
        'keyedcache',
        'livesettings',
        'l10n',
        'satchmo_utils.thumbnail',
        'satchmo_store.contact',
        'tax',
        'tax.modules.no',
        'tax.modules.area',
        'tax.modules.percent',
        'shipping',
        #'shipping.modules.tieredquantity',
        #'satchmo_store.contact.supplier',
        #'satchmo_ext.newsletter',
        #'satchmo_ext.recentlist',
        #'satchmo_ext.product_feeds',
        #'satchmo_ext.brand',
        #'satchmo_ext.wishlist',
        #'satchmo_ext.upsell',
        #'satchmo_ext.productratings',
        #'satchmo_ext.tieredpricing',
        'product',
        'payment',
        #'payment.modules.purchaseorder',
        #'payment.modules.giftcertificate',
        'satchmo_utils',

Note: You may also have to install the dependencies and/or
django.contrib apps:
    'sorl.thumbnail', # sorl-thumbail
    'registration',   #django registration
    'app-plugins',

OK you're done with your settings file!

Now finally open up your urls.py file and at the bottom add this:

from satchmo_store.urls import urlpatterns as satchmo_urls
urlpatterns += satchmo_urls

Save and do "python manage.py runserver" and navigate to 
http://localhost:8000/shop
and you should see an unstyled and empty store. Why is it unstyled and
empty. Well we didn't copy over the static media files nor a demo
store. But the official documentation should work for that!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to