Welcome to the Django E-Commerce Template Project! This project is a starting point for building an e-commerce website using Django.
- Admin user can list products with descriptions, prices, and images
- Users can sign up and add items to a wishlist
- Search functionality to find products
- Admin user can add blog posts
- Python 3.8.1
- Django 4.0.3
- Clone the repository:
git clone https://github.com/raw0ol/django-eCommerce-template.git
- Change into the project directory:
cd django-ecommerce-template
-
A virtual environment: It is recommended to set up a virtual environment for your Django project to keep its dependencies separate from other Python projects on your system. You can create a virtual environment using the venv module that comes with Python 3.8.1 or higher.
-
Install the required packages:
pip install -r requirements.txt
- Run the migrations to create the database tables:
python manage.py migrate
- Create a superuser to access the admin panel:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
- Open your web browser and navigate to http://127.0.0.1:8000/ to see the site.
- Log in to the admin panel at http://127.0.0.1:8000/admin/
- Click on the "Products" link in the "APP_STORE" section
- Click on the "Add Product" button
- Enter the product information and click "Save" (feature items appear in homepage)
- Sign up for an account at http://127.0.0.1:8000/accounts/register/
- Log in to your account
- Browse the products and click the "Add to Wishlist" button for any products you want to save
- To view your wishlist, go to account profile at http://127.0.0.1:8000/accounts/profile/ and click on the "See All" link in the top right corner of the profile
Use the search box in the top menu to search for products by name.
- Log in to the admin panel at http://127.0.0.1:8000/admin/
- Click on the "Blogs" link in the "APP_BLOG" section
- Click on the "Add Blog" button
- Enter the blog information and click "Save"
- To add sections to blog post, navigate back to the admin panel and click on the "Blog Sections" section in the left-hand menu.
- Click on the "Add Blog Section" button at the top right of the page.
- Enter the blog section information and select which Blog to add this section to.
You should now be able to view your new blog post on the front-end of your Django website.
We welcome contributions to this project! Here's how to make a pull request:
-
Fork the repository to your personal GitHub account.
-
Clone the repository to your local machine:
git clone https://github.com/[your-username]/django-eCommerce-template.git
- Create a new branch to make your changes on:
git checkout -b my-branch
- Make changes and commit them to your new branch:
git add .
git commit -m "My changes to the project"
- Push your changes to your forked repository:
git push origin my-branch
-
Go to the original repository on GitHub and create a pull request. Compare your changes with the original repository and make sure to describe your changes and why you made them.
-
Wait for the maintainer to review your changes and merge them into the main codebase.
This project is for educational purposes only and is not intended for use in a production environment. No buying functionality has been implemented.
This project is licensed under the MIT License - see the LICENSE file for details