satchmo安装
软件需求
主要软件
- python-2.5.2.msi :http://www.python.org/download/
- django svn 版本 :http://code.djangoproject.com/svn/django/trunk
- satchmo svn 版本 : svn://satchmoproject.com/satchmo/trunk
其他软件
安装
python 的安装相对大概有两种方式:
- exe安装
- setup.py install 源码安装
安装步骤
- 安装python-2.5.2
- 安装Docutils
- 按住 “其他软件”中的其他软件。
- 在一个目录src,(具体位置任选,比如 F:/src )
- 拷贝django 目录到src目录下。(django指的是代码目录,和docs并列的django)
创建工程
- 创建cfg.bat ,内容如下 (在f:/src 目录下)
-----------------------------------------------------------------
set PYTHONPATH=F:\src
f:\src>cfg.bat
f:\src>python django/bin/django-admin.py startproject mystore
经过上面步骤,就会创建,f:/src/mystore 目录
[f:\src]copy "satchmo/local_settings-customize.py" "satchmo/local_settings.py"
[f:\src\mystore]python manage.py satchmo_copy_urls
Copied F:\src\satchmo\urls.py to F:\src\mystore\satchmo-urls.py
[f:\src\mystore]copy urls.py urls.py.orig
F:\src\mystore\urls.py => F:\src\mystore\urls.py.orig 1 file copied
[f:\src\mystore]copy satchmo-urls.py urls.py
F:\src\mystore\satchmo-urls.py => F:\src\mystore\urls.py 1 file copied
[f:\src\mystore]python manage.py satchmo_copy_static
Copied F:\src\satchmo\static to F:\src\mystore\static
[f:\src\mystore]python manage.py satchmo_copy_templates
Copied F:\src\satchmo\templates to F:\src\mystore\templates
[f:\src\mystore]python manage.py satchmo_check
Checking your satchmo configuration.
Your configuration has no errors.
- 同步数据库(如何配置mysql数据库,请看其他文档)
[f:\src\mystore]python manage.py syncdb
[f:\src\mystore]python manage.py satchmo_load_l10n
[f:\satchmo_shop\mystore]python manage.py satchmo_load_store
[f:\src\mystore]python manage.py runserver
测试一下,看是不是已经工作了。
setting.py

