欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Django-oscar
来自开放百科 - 灰狐
(版本间的差异)
小 (→指南) |
小 (→解决方案) |
||
(未显示1个用户的6个中间版本) | |||
第8行: | 第8行: | ||
$ source ./oscar/bin/activate | $ source ./oscar/bin/activate | ||
(oscar) $ make sandbox | (oscar) $ make sandbox | ||
− | (oscar) $ sites/sandbox/manage.py runserver | + | (oscar) $ sites/sandbox/manage.py runserver 192.168.33.10:8000 |
− | http:// | + | http://192.168.33.10:8000 |
username: superuser | username: superuser | ||
email: [email protected] | email: [email protected] | ||
password: testing | password: testing | ||
− | 在OS | + | 可能出现的错误:decoder jpeg not available,解决方法: |
+ | rm -rf /usr/lib64/python2.7/site-packages/PIL | ||
+ | rm /usr/lib64/python2.7/site-packages/PIL.pth | ||
+ | yum install libjpeg | ||
+ | yum install libjpeg-devel | ||
+ | yum install freetype | ||
+ | yum install freetype-devel | ||
+ | tar xf [http://www.pythonware.com/products Imaging-1.1.7.tar.gz] | ||
+ | python setup.py install | ||
+ | 同时还有 {% thumbnail image.original "x155" upscale=False as thumb %} 错误 | ||
+ | |||
+ | 参考:[https://github.com/mariocesar/sorl-thumbnail Thumbnails for Django] | ||
+ | |||
+ | 在OS X下可能是这个错误,*** uWSGI linking ***,Failed building wheel for uWSGI,可试着解决: | ||
brew install uwsgi --with-python --with-python3 | brew install uwsgi --with-python --with-python3 | ||
[http://django-oscar.readthedocs.org/en/latest/internals/sandbox.html 更多安装细节] | [http://django-oscar.readthedocs.org/en/latest/internals/sandbox.html 更多安装细节] | ||
第25行: | 第38行: | ||
*实体店整合:[https://github.com/django-oscar/django-oscar-stores django-oscar-stores] | *实体店整合:[https://github.com/django-oscar/django-oscar-stores django-oscar-stores] | ||
*账号系统:[https://github.com/django-oscar/django-oscar-accounts django-oscar-accounts] | *账号系统:[https://github.com/django-oscar/django-oscar-accounts django-oscar-accounts] | ||
+ | |||
+ | ==用户== | ||
+ | *[[edX]] | ||
==图集== | ==图集== |
2017年7月25日 (二) 07:30的最后版本
django-oscar:一个面向 Django 的网店和电子商务系统,New BSD 许可协议。
目录 |
[编辑] 指南
$ git clone https://github.com/django-oscar/django-oscar.git $ cd django-oscar $ sudo pip install virtualenv $ virtualenv oscar $ source ./oscar/bin/activate (oscar) $ make sandbox (oscar) $ sites/sandbox/manage.py runserver 192.168.33.10:8000 http://192.168.33.10:8000 username: superuser email: [email protected] password: testing
可能出现的错误:decoder jpeg not available,解决方法:
rm -rf /usr/lib64/python2.7/site-packages/PIL rm /usr/lib64/python2.7/site-packages/PIL.pth yum install libjpeg yum install libjpeg-devel yum install freetype yum install freetype-devel tar xf Imaging-1.1.7.tar.gz python setup.py install
同时还有 {% thumbnail image.original "x155" upscale=False as thumb %} 错误
在OS X下可能是这个错误,*** uWSGI linking ***,Failed building wheel for uWSGI,可试着解决:
brew install uwsgi --with-python --with-python3
[编辑] 解决方案
django-oscar是个完整的电子商务解决方案:
- 电商网站:django-oscar
- RESTful API:django-oscar-api
- PayPal支付:django-oscar-paypal
- Stripe移动支付:django-oscar-stripe
- 实体店整合:django-oscar-stores
- 账号系统:django-oscar-accounts
[编辑] 用户
[编辑] 图集
[编辑] 链接
分享您的观点