Based on Itheima Django course projects. Dailyfresh is a B2C e-commerce website project built with the Django framework. This project is built for the purpose of learning the features of Django. The project mainly includes four important aspects: user, goods, shopping cart and order. The functions of those aspects cover some of the basic needs of an e-commerce website.
- Python, Django
- Mysql: store the data of users, goods, and orders
- Redis: implement shopping cart's functions, store users' browser history, and work as a message broker for Celery
- Celery: send the activation email to a user in an asynchronous way when that user registers
- FastDFS & Nginx: store images of the website in a distributed way; convenient to scale the storage; increase the efficiency to get images
- Haystack & Whoosh: search framework and search engine; used for the search purposes inside the website
We need to run FastDFS in Linux. I added an ubuntu using VirtualBox on my laptop and installed the FastDFS & Nginx there. Mysql, Redis, Celery and the main project are running in another win10 computer.
pip install -r requirements.txt
Mysql, Redis and Celery
FastDFS and Nginx
Edit project settings file
Others
py manage.py makemigrations
py manage.py migrate
py manage.py runserver