Introduction
Satchmo is e commerce platform written using Django. Below is how to get it up on Window (7)
The dependencies
If you have no easy_install, go grab and install it. Once you have it, add C:PythonXXScripts into your the path environment and test by calling easy_install.
Once you get the easy_install, install following:
easy_install pycrypto
easy_install http://code.enthought.com/enstaller/eggs/rhel/3/Reportlab-2.1.0001-py2.5.egg
easy_install http://www.satchmoproject.com/snapshots/trml2pdf-1.2.tar.gz
easy_install django-registration
easy_install PyYAML
If you are using Python version lower than 2.4, you need to install elementtree . For Python 2.5 and above, it already in the standard library
easy_install elementtree
Install Python Imaging Library, go set it at Python Imaging Library (PIL)
Install django-threaded-multihost, download the package from http://gosatchmo.com/apps/django-threaded-multihost/ and that run setup.py install
Install django-app-plugin, get the source at http://django-app-plugins.googlecode.com/svn/trunk/ and than simply copy the package to your python.
Install sorl-thumbnail, get the source at http://sorl-thumbnail.googlecode.com/svn/trunk/sorl/ and copy into your python path or run "setup.py install"
Install Python SSL 1.5, this is a but tricky. Go get (or compile it by yourself) it at Compile ssl 1.15 for Python 2.5 or lower
Install Satchmo
Get Satchmo by,
hg clone http://bitbucket.org/chris1610/satchmo/
After you've got the codes, run "python setup.py install"
Test Satchmo
Make sure you can do below
>>> import django >>> import satchmo_store >>> satchmo_store.get_version()
Try it out
I recommended you to try the "simple" projects comes with the Satchmo distribute. So go to the simple project and changes following,
At settings.py change LANGUAGE_CODE = 'en-us' to LANGUAGE_CODE = 'us'
Add (r'^accounts/', include('registration.urls')), to your urls configuration
Copy static folder from Satchmo and place it in your project directory (if python manage.py satchmo_copy_static doesn't work for with. It doesn't work for me)
Copy below templates to your template directory
- admin
- contact
- keyedcache
- l10n
- livesettings
- product
- shop
- 404.html, 500.html and base.html from Satcmo (default template)
If you want to see the registration you need to add your own (or copy from) templates since the django-registration has no default template
Init the database
Run following command,
python manage.py satchmo_check #make sure no error python manage.py syncdb python manage.py satchmo_load_l10n python manage.py satchmo_load_store python manage.py satchmo_load_us_tax python manage.py runserver
You should see your store up and running at http://127.0.0.1:8000