Satchmo

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Links)
 
(未显示1个用户的6个中间版本)
第102行: 第102行:
  
 
==Install==
 
==Install==
 +
[http://www.forwardthinkingdesign.com/blog/installing-django-satchmo-debian-etch Installing Django with Satchmo on Debian Etch]
 
===Installing Dependencies===
 
===Installing Dependencies===
 +
wget http://peak.telecommunity.com/dist/ez_setup.py
 +
su -c 'python ez_setup.py'
 
  easy_install pycrypto
 
  easy_install pycrypto
 
  or apt-get install python-crypto
 
  or apt-get install python-crypto
第122行: 第125行:
 
  easy_install docutils
 
  easy_install docutils
 
  or apt-get install python-docutils
 
  or apt-get install python-docutils
 +
easy_install
 
===Install Satchmo===
 
===Install Satchmo===
 
  svn co svn://satchmoproject.com/satchmo/trunk satchmo-trunk
 
  svn co svn://satchmoproject.com/satchmo/trunk satchmo-trunk
第145行: 第149行:
 
  python manage.py satchmo_copy_urls
 
  python manage.py satchmo_copy_urls
 
===Database===
 
===Database===
 +
python manage.py syncdb
 +
python manage.py satchmo_load_l10n
 +
python manage.py satchmo_load_store
 +
python manage.py satchmo_load_us_tax
 
===Run===
 
===Run===
 
  cd /satchmo-trunk/satchmo/projects/large
 
  cd /satchmo-trunk/satchmo/projects/large
  python manage.py runserver
+
  python manage.py satchmo_check
 
  Error: No module named sorl
 
  Error: No module named sorl
 +
svn checkout http://sorl-thumbnail.googlecode.com/svn/trunk/ sorl-thumbnail-read-only
 +
Error: No module named typogrify
 +
svn checkout http://typogrify.googlecode.com/svn/trunk/ typogrify-read-only
 +
Error: No module named app_plugins
 +
svn checkout http://django-app-plugins.googlecode.com/svn/trunk/ django-app-plugins-read-only
 +
 +
Checking your satchmo configuration.
 +
Using Django version 1.0.2 final
 +
Using Satchmo version 0.9-pre-SVN-unknown
 +
Your configuration has no errors.
 
===View===
 
===View===
 
  python manage.py runserver
 
  python manage.py runserver
第159行: 第177行:
 
*http://shop.fsf.org/
 
*http://shop.fsf.org/
 
*http://www.oceanbooks.com.au/
 
*http://www.oceanbooks.com.au/
*http://shop.51kanglin.com
+
*http://shop.huihoo.com
 +
 
 
==Links==
 
==Links==
 
*http://www.satchmoproject.com/
 
*http://www.satchmoproject.com/
 +
*http://gosatchmo.com/
 
*http://docs.huihoo.com/satchmo/
 
*http://docs.huihoo.com/satchmo/
 
*http://download.huihoo.com/satchmo/
 
*http://download.huihoo.com/satchmo/
 +
 +
{{comment}}
 +
 +
[[Category:B2B2C2C]]
 +
[[Category:Python]]
 +
[[Category:Django]]

2011年1月16日 (日) 05:47的最后版本

Satchmo's mission is to use Django to create an open source framework for creating unique and robust online stores. To provide maximum flexibility, Satchmo is licensed under the BSD license.

OpenShop based on Satchmo

目录

[编辑] Features

Satchmo strives to be extremely flexible.

  • All display items are driven by templates using the powerful Django templating language
  • All urls can be custom configured to your desired naming convention
  • The checkout process can be tailored to your specific needs

Satchmo support many payment modules including:

  • Authorize.net
  • Trustcommerce
  • Google checkout
  • Cybersource
  • Paypal
  • Protx
  • Purchase orders

Satchmo has flexible shipping options and allows you to create your own. Satchmo includes:

  • UPS integration
  • Fedex integration
  • USPS integration
  • Flat rate shipping
  • Multi-tiered shipping

Satchmo’s has robust support for multiple product types including:

  • Downloadable products
  • Subscription products
  • Custom configured products
  • Product variants
  • Gift certificates

All products offer you the opportunity to have:

  • As many images per product as you would like
  • Automatice thumbnail creation for the images
  • Unlimited categories and sub categories
  • Support for multiple pricing and discounting tiers based on volume
  • Support for tiered/group pricing
  • Inventory tracking including SKU’s and preventing users from ordering out of stock items
  • Meta data support for SEO
  • Featured items
  • Tax tables
  • Related products
  • Most popular products
  • Arbitrary attributes
  • Multiple translations per product
  • Flexible variant creation (shirts with sizes and colors) including price changes for combinations
  • Allow user to comment and rate products
  • Comments support akismet spam tagging

The customer model allows you to:

  • Have multiple ship to and bill to addresses
  • View order history
  • Update account profile online
  • Reset user passwords
  • Require email verification for account creation
  • Satchmo supports discount codes which allow you to:
  • Set amount of percentage discounts
  • Limit the number of uses
  • Allow free shipping
  • Set start and end dates
  • Limit to certain products

Satchmo includes extensive Internationalization and translation support:

Multiple translations are included:

  • French
  • German
  • Italian
  • Spanish
  • Swedish
  • Bulgarian
  • Portuguese
  • Korean
  • Hebrew
  • Turkish

Full country specific information

Translation support for all products and categories

Support for date and currency formating based on locale

Satchmo takes security seriously:

Django provides built in support to prevent many common attacks such as:

  • SQL injection
  • Automatic HTML escaping to prevent cross-site scripting
  • Session forging/hijacking

Satchmo encrypts all credit card information

Satchmo does not store ccv data in the database

Fine grained ssl support for as many or as few urls as you need

Django is a proven scalable and robust system. Satchmo takes advantage of this by using:

  • Django caching
  • Opportunity to easily split out the tiers of the application (database, web, etc)
  • A large suite of unit tests

In addition to these items, Satchmo provides:

  • Generation of PDF invoices, packing slips and shipping labels
  • Full store product searching
  • Google analytic integration
  • Google adwords support
  • Google base feeds
  • Newsletter support via mailman or custom database
  • Recently viewed items
  • Wishlists

[编辑] Install

Installing Django with Satchmo on Debian Etch

[编辑] Installing Dependencies

wget http://peak.telecommunity.com/dist/ez_setup.py
su -c 'python ez_setup.py'
easy_install pycrypto
or apt-get install python-crypto
easy_install http://code.enthought.com/enstaller/eggs/rhel/3/Reportlab-2.1.0001-py2.5.egg
or apt-get install python-reportlab
easy_install django-registration
or svn checkout http://django-registration.googlecode.com/svn/trunk/ django-registration-read-only
python setup.py install
easy_install http://tinyforge.org/frs/download.php/1/trml2pdf.tar.gz
or apt-get install python-trml2pdf
easy_install PyYAML
or apt-get install python-yaml

Install Python Imaging Library.

easy_install --find-links=http://download.zope.org/distribution PILwoTk
or apt-get install python-imaging

Optional dependencies

easy_install elementtree
or apt-get install python-celementtree
easy_install docutils
or apt-get install python-docutils
easy_install 

[编辑] Install Satchmo

svn co svn://satchmoproject.com/satchmo/trunk satchmo-trunk
cd satchmo-trunk
sudo python setup.py install
>>> import django
>>> import satchmo_store
>>> satchmo_store.get_version()
u'0.9-pre-SVN-unknown'
django-admin.py startproject mystore
cp satchmo-trunk/satchmo/projects/base/local_settings.py mystore/local_settings.py
vi local_settings.py
SITE_NAME = "My Shop"
CACHE_BACKEND = "memcached://127.0.0.1:11211/" or "file:///var/tmp/django_cache"
CACHE_TIMEOUT = 60x5
SITE_DOMAIN ="huihoo.org"
LOGDIR =  os.path.abspath(os.path.dirname(__file__))
LOGFILE = "satchmo.log"

[编辑] Customizing the settings

vi mystore/settings.py

cp satchmo/local_settings-customize.py /mystore/local_settings.py

required files

python manage.py satchmo_copy_urls

[编辑] Database

python manage.py syncdb
python manage.py satchmo_load_l10n
python manage.py satchmo_load_store
python manage.py satchmo_load_us_tax

[编辑] Run

cd /satchmo-trunk/satchmo/projects/large
python manage.py satchmo_check
Error: No module named sorl
svn checkout http://sorl-thumbnail.googlecode.com/svn/trunk/ sorl-thumbnail-read-only
Error: No module named typogrify
svn checkout http://typogrify.googlecode.com/svn/trunk/ typogrify-read-only
Error: No module named app_plugins
svn checkout http://django-app-plugins.googlecode.com/svn/trunk/ django-app-plugins-read-only

Checking your satchmo configuration.
Using Django version 1.0.2 final
Using Satchmo version 0.9-pre-SVN-unknown
Your configuration has no errors.

[编辑] View

python manage.py runserver
http://127.0.0.1:8000/shop
http://127.0.0.1:8000/admin
http://127.0.0.1:8000/settings
http://127.0.0.1:8000/admin/doc 

more detail: http://www.satchmoproject.com/docs/svn/new_installation.html

[编辑] User

[编辑] Links

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱