python 开源商城安装

现在python的商城方面的开源软件好像没多少,关注到一个,Satchmo 主页在http://www.satchmoproject.com/

网上有个使用这个的,http://www.newconcepttools.com/,看着还不错。

昨天安装了一下,记录下过程。

Satchmo,在django的继承上开发的。

python环境我们用的virtualenv,为什么用这个呢,自己去看书吧。

首先建立d:\py14目录,进入目录 virtualenv ENV,进去activate,这下,新安装的python包都会到py14目录里面。

1,安装依赖 Satchmo依赖的东西比较多:

pip install pycrypto
pip install pyyaml
pip install pil
pip install -I django==1.4.6​
pip install django-threaded-multihost
pip install django-app-plugins
pip install sorl-thumbnail
​​pip install South
pip install django-livesettings​​
pip install django-keyedcache
pip install sphinx
pip install South

2,安装Stachmo

hg clone http://bitbucket.org/chris1610/satchmo/

进入目录python setup.py install

mkdir store

进入这个目录,运行python satchmo/scripts/clonesatchmo.py这个目录在hg clone的目录里面。 根据提示输入信息,软件就安装完成了。 3,运行Stachmo 进入刚才的目录找到manage.py

python manage.py runserver

4,浏览器打开http://127.0.0.1:8000

现在出现错误,

 File "D:\py14\ENV\lib\site-packages\app_plugins\templatetags\app_plugins.py", line 162, in template_exists
loader.find_template_source(templ)
AttributeError: 'module' object has no attribute 'find_template_source'

找到app_plugins.py 把刚才那一行,

loader.find_template_source(templ)改成,
loader.get_template(templ)

重新运行,python manage.py runserver 看到商场了吧?

本文学习自,http://www.satchmoproject.com/docs/dev/new_installation.html

    原文作者:lxyer
    原文地址: https://blog.csdn.net/lxyer/article/details/11950021
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞