yuanwenq / Dailyfresh
Django-天天生鲜电商学习项目
Stars: ✭ 127
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Dailyfresh
Dailyfresh B2c
dailyfresh mall based on B2C model
Stars: ✭ 177 (+39.37%)
Mutual labels: redis, fastdfs, django, celery
Autoops
linux资产管理,cmdb,django, webssh,运维管理平台,数据库操作平台 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 340 (+167.72%)
Mutual labels: mysql, django, celery, nginx
Docker Django
A complete docker package for deploying django which is easy to understand and deploy anywhere.
Stars: ✭ 378 (+197.64%)
Mutual labels: redis, django, celery, nginx
Netkiller.github.io
Netkiller Free ebook - 免费电子书
Stars: ✭ 861 (+577.95%)
Mutual labels: mysql, redis, nginx
Funpyspidersearchengine
Word2vec 千人千面 个性化搜索 + Scrapy2.3.0(爬取数据) + ElasticSearch7.9.1(存储数据并提供对外Restful API) + Django3.1.1 搜索
Stars: ✭ 782 (+515.75%)
Mutual labels: mysql, redis, django
Enferno
A Python framework based on Flask microframework, with batteries included, and best practices in mind.
Stars: ✭ 385 (+203.15%)
Mutual labels: mysql, redis, celery
Phalcon Vm
Vagrant configuration for PHP7, Phalcon 3.x and Zephir development.
Stars: ✭ 43 (-66.14%)
Mutual labels: mysql, redis, nginx
Photo Blog
The Photo Blog Application based on Laravel 5 and Vue.js 2 + Prerender
Stars: ✭ 55 (-56.69%)
Mutual labels: mysql, redis, nginx
Docker Django Example
A production ready example Django app that's using Docker and Docker Compose.
Stars: ✭ 86 (-32.28%)
Mutual labels: redis, django, celery
Python Spider
豆瓣电影top250、斗鱼爬取json数据以及爬取美女图片、淘宝、有缘、CrawlSpider爬取红娘网相亲人的部分基本信息以及红娘网分布式爬取和存储redis、爬虫小demo、Selenium、爬取多点、django开发接口、爬取有缘网信息、模拟知乎登录、模拟github登录、模拟图虫网登录、爬取多点商城整站数据、爬取微信公众号历史文章、爬取微信群或者微信好友分享的文章、itchat监听指定微信公众号分享的文章
Stars: ✭ 615 (+384.25%)
Mutual labels: mysql, redis, django
Opman Django
💯✅自动化运维平台:CMDB、CI/CD、DevOps、资产管理、任务编排、持续交付、系统监控、运维管理、配置管理
Stars: ✭ 539 (+324.41%)
Mutual labels: mysql, django, nginx
Springbootunity
rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)
Stars: ✭ 845 (+565.35%)
Mutual labels: mysql, redis, nginx
Drupal Nginx Php Kubernetes
Demonstration of a set of NGINX and PHP-FPM containers running Drupal deployed to Kubernetes on the IBM Container Service. This is a work in progress.
Stars: ✭ 43 (-66.14%)
Mutual labels: mysql, redis, nginx
Playlistor
🎶Apple Music ↔️ Spotify playlist convertor.
Stars: ✭ 95 (-25.2%)
Mutual labels: redis, django, celery
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-18.11%)
Mutual labels: mysql, redis, fastdfs
Python-Django-天天生鲜项目
初学django框架时按照传智播客python教程所学习的项目,该项目包含了实际开发中的电商项目中大部分的功能开发和知识点实践。
功能:用户注册,用户登录,购物车,用户中心,首页,订单系统,地址信息管理,商品列表,商品详情,支付功能等等,是一个完整的电商项目流程
注:此项目纯属个人学习项目
技术栈
python + django + mysql + redis + celery + FastDFS(分布式图片服务器) + nginx
目标功能:
- [x] 功能模块
- [x] 用户模块
- [x] 注册
- [x] 登录
- [x] 激活(celery)
- [x] 退出
- [x] 个人中心
- [x] 地址管理
- [x] 商品模块
- [x] 首页(celery)
- [x] 商品详情
- [x] 商品列表
- [x] 搜索功能(haystack+whoose)
- [x] 购物车模块(redis)
- [x] 增加
- [x] 删除
- [x] 修改
- [x] 查询
- [x] 订单模块
- [x] 确认订单页面
- [x] 订单创建
- [x] 请求支付(支付宝)
- [x] 查询支付结果
- [x] 评论
- [x] 用户模块
运行环境
-
项目启动:
-
注意: 项目启动前请先查看项目配置环境文件,配置你相应的设置,并安装好各个环境,mysql+redis+nginx+fastDFS+celery等
项目包安装 pip install -r requirements.txt Django启动命令 python manage.py runserver
-
注意: 项目启动前请先查看项目配置环境文件,配置你相应的设置,并安装好各个环境,mysql+redis+nginx+fastDFS+celery等
-
uwsgi web服务器启动:
-
注意: uwsgi开启需要修改配置文件中的DEBUG和ALLOWED_HOSTS
启动: uwsgi --ini 配置文件路径 / uwsgi --ini uwsgi.ini 停止: uwsgi --stop uwsgi.pid路径 / uwsgi --stop uwsgi.pid
-
注意: uwsgi开启需要修改配置文件中的DEBUG和ALLOWED_HOSTS
-
celery分布式任务队列启动
celery -A celery_tasks.tasks worker -l info
-
redis服务端启动
sudo redis-server /etc/redis/redis.conf
-
FastDFS服务启动 ```
Trackerd服务 sudo /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf startstorge服务 sudo /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start ```
-
nginx
启动nginx sudo /usr/local/nginx/sbin/nginx 重启nginx sudo /usr/local/nginx/sbin/nginx -s reload
-
建立索引文件--搜索引擎
新环境需要配置jieba分词,生成whoose_cn_backend文件python manage.py rebuild_index
-
mysql事务隔离级别设置
sudo vim /etc/mysql/mysql.conf.d/mysql.cnf transaction-isolation = READ-COMMITTED (读已提交)
项目包介绍
amqp==2.3.2
asn1crypto==0.24.0
billiard==3.5.0.4
celery==4.2.1
certifi==2018.11.29
cffi==1.11.5
chardet==3.0.4
configparser==3.5.0
cryptography==2.4.1
Django==1.8.2
django-haystack==2.8.1
django-redis==4.10.0
django-redis-sessions==0.5.6
django-tinymce==2.6.0
fdfs-client-py==1.2.6
idna==2.7
itsdangerous==1.1.0 # 身份信息加密
jieba==0.39 # jieba分词-分解词汇方便搜索
kombu==4.2.1
mutagen==1.41.1
Pillow==5.3.0
pycparser==2.19
pycryptodomex==3.7.2
PyMySQL==0.9.2
python-alipay-sdk==1.8.0
pytz==2018.7
redis==2.10.6
requests==2.20.1
rerequests==1.0.0b0
six==1.11.0
urllib3==1.24.1
uWSGI==2.0.17.1
vine==1.1.4
Whoosh==2.7.4
注意点
pip install fdfs_client-py-master 存在bug,需要下载特定版本
redis版本需要2.10.6 否则会报错,因为使用django的版本过低问题
如果使用乐观锁,需要修改mysql事务的隔离级别设置
总结
项目展示
项目布局
|-- README.md
|-- __init__.py
|-- apps
| |-- __init__.py
| |-- cart
| | |-- __init__.py
| | |-- __pycache__
| | |-- admin.py
| | |-- migrations
| | | |-- __init__.py
| | | `-- __pycache__
| | |-- models.py
| | |-- tests.py
| | |-- urls.py
| | `-- views.py
| |-- goods
| | |-- __init__.py
| | |-- __pycache__
| | |-- admin.py
| | |-- migrations
| | | |-- 0001_initial.py
| | | |-- __init__.py
| | | `-- __pycache__
| | | |-- 0001_initial.cpython-36.pyc
| | |-- models.py
| | |-- search_indexes.py
| | |-- tests.py
| | |-- urls.py
| | `-- views.py
| |-- order
| | |-- __init__.py
| | |-- __pycache__
| | |-- admin.py
| | |-- alipay_public_key.pem
| | |-- app_private_key.pem
| | |-- migrations
| | | |-- 0001_initial.py
| | | |-- 0002_auto_20181126_1609.py
| | | |-- __init__.py
| | | `-- __pycache__
| | |-- models.py
| | |-- tests.py
| | |-- urls.py
| | `-- views.py
| `-- user
| |-- __init__.py
| |-- __pycache__
| |-- admin.py
| |-- migrations
| | |-- 0001_initial.py
| | |-- __init__.py
| | `-- __pycache__
| |-- models.py
| |-- tests.py
| |-- urls.py
| `-- views.py
|-- celery_tasks
| |-- __init__.py
| |-- __pycache__
| `-- tasks.py
|-- configurationFile
| |-- Full-textSearchEngine.md
| |-- celeryDescript.md
| |-- conf
| | |-- client.conf
| | |-- mod_fastdfs.conf
| | |-- nginx.conf
| | |-- redis.conf
| | |-- search.png
| | |-- storage.conf
| | |-- tracker.conf
| | `-- whoosh_cn_backend.py
| |-- fastDFSDownload.md
| |-- images
| |-- nginxAndFastDFS-nginx-moduleDownload.md
| |-- redisDownload.md
| `-- virtualenvDescript.md
|-- dailyfresh
| |-- __init__.py
| |-- __pycache__
| |-- settings.py
| |-- urls.py
| `-- wsgi.py
|-- db
| |-- __init__.py
| |-- __pycache__
| `-- base_model.py
|-- manage.py
|-- mind.md
|-- nginxConfig
|-- requirements.txt
|-- static
| |-- cart.html
| |-- css
| |-- detail.html
| |-- images
| |-- index.html
| |-- js
| | |-- jquery-1.12.4.min.js
| | |-- jquery-ui.min.js
| | |-- jquery.cookie.js
| | |-- register.js
| | `-- slide.js
| |-- list.html
| |-- login.html
| |-- place_order.html
| |-- register.html
| |-- user_center_info.html
| |-- user_center_order.html
| `-- user_center_site.html
|-- templates
| |-- base.html
| |-- base_detail_list.html
| |-- base_no_cart.html
| |-- base_user_center.html
| |-- cart.html
| |-- detail.html
| |-- index.html
| |-- list.html
| |-- login.html
| |-- order_comment.html
| |-- place_order.html
| |-- register.html
| |-- search
| | |-- indexes
| | | `-- goods
| | | `-- goodssku_text.txt
| | |-- search.html
| | `-- search1.html
| |-- static_base.html
| |-- static_index.html
| |-- user_center_info.html
| |-- user_center_order.html
| `-- user_center_site.html
|-- utils
| |-- __init__.py
| |-- __pycache__
| |-- fdfs
| | |-- __init__.py
| | |-- __pycache__
| | |-- client.conf
| | `-- storage.py
| `-- mixin.py
|-- uwsgi
|-- uwsgi.log
|-- uwsgi.pid
|-- uwsgi2
|-- uwsgi2.log
|-- uwsgi2.pid
`-- whoosh_index
|-- MAIN_WRITELOCK
|-- MAIN_o1a38vfacpcxkfgw.seg
`-- _MAIN_11.toc
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].