Code Monkey home page Code Monkey logo

django-ecommerce-template's Introduction

django-eCommerce-template

Welcome to the Django E-Commerce Template Project! This project is a starting point for building an e-commerce website using Django.

Home Page Home Page

Store Page Store Page

Features

  • 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

Prerequisites

  • Python 3.8.1
  • Django 4.0.3

Getting Started

  1. Clone the repository:
git clone https://github.com/raw0ol/django-eCommerce-template.git 
  1. Change into the project directory:
cd django-ecommerce-template 
  1. 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.

  2. Install the required packages:

pip install -r requirements.txt 
  1. Run the migrations to create the database tables:
python manage.py migrate 
  1. Create a superuser to access the admin panel:
python manage.py createsuperuser 
  1. Run the development server:
python manage.py runserver 
  1. Open your web browser and navigate to http://127.0.0.1:8000/ to see the site.

Adding Products

  1. Log in to the admin panel at http://127.0.0.1:8000/admin/
  2. Click on the "Products" link in the "APP_STORE" section
  3. Click on the "Add Product" button
  4. Enter the product information and click "Save" (feature items appear in homepage)

Admin Page

Adding to Wishlist

  1. Sign up for an account at http://127.0.0.1:8000/accounts/register/
  2. Log in to your account
  3. Browse the products and click the "Add to Wishlist" button for any products you want to save
  4. 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

Searching for Products

Use the search box in the top menu to search for products by name.

Blog Post

  1. Log in to the admin panel at http://127.0.0.1:8000/admin/
  2. Click on the "Blogs" link in the "APP_BLOG" section
  3. Click on the "Add Blog" button
  4. Enter the blog information and click "Save"
  5. To add sections to blog post, navigate back to the admin panel and click on the "Blog Sections" section in the left-hand menu.
  6. Click on the "Add Blog Section" button at the top right of the page.
  7. 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.


How to Contribute

We welcome contributions to this project! Here's how to make a pull request:

  1. Fork the repository to your personal GitHub account.

  2. Clone the repository to your local machine:

git clone https://github.com/[your-username]/django-eCommerce-template.git
  1. Create a new branch to make your changes on:
git checkout -b my-branch
  1. Make changes and commit them to your new branch:
git add .
git commit -m "My changes to the project"
  1. Push your changes to your forked repository:
git push origin my-branch
  1. 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.

  2. Wait for the maintainer to review your changes and merge them into the main codebase.


Disclaimer

This project is for educational purposes only and is not intended for use in a production environment. No buying functionality has been implemented.

License

This project is licensed under the MIT License - see the LICENSE file for details

django-ecommerce-template's People

Contributors

jagadishb1409 avatar raw0ol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.