A simple shopping website built with Python and Django for the backend, and Bootstrap for the frontend. This project also integrates with Zarinpal Payment Gateway for real-world payment support.
- User authentication (login, signup, logout)
- Product listing and categories
- Shopping cart and order management
- Payment integration with Zarinpal
- Responsive design using Bootstrap
- Backend: Python, Django
- Frontend: HTML, CSS, Bootstrap
- Database: SQLite (default) – can be replaced with PostgreSQL/MySQL
- Payment: Zarinpal gateway integration
-
Clone the repository:
git clone https://github.com/imrrobat/digikala.git cd digikala -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # on Linux/Mac venv\Scripts\activate # on Windows
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser (for admin panel):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
Then open: http://localhost:8000
To enable payments:
- Create an account at Zarinpal
- Get your Merchant ID
- Add it in the project settings (in
.envfile)
I have explained step by step how to build this project on my YouTube channel.
Check out the full playlist here:
👉 YouTube Playlist
Contributions are welcome! Feel free to fork this repo and submit pull requests.
If you like this project, please give it a star ⭐ on GitHub — it really helps!
