Giter VIP home page Giter VIP logo

ecommerce_new_project's Introduction

GreatKart E-commerce Website

GreatKart is a full-fledged e-commerce website built using Python Django for the backend, SQLite for database management, and HTML as the view engine to render pages dynamically.

Features

  • Multi-product with Variations
  • Registration, Login with Token-Based Verification & Message Alerts
  • Online Payment Integration (Paypal)
  • Order Tracking
  • Admin dashboard
  • Charts and Graphs
  • Paginator & Search
  • My Account Functionalities
  • Product Gallery with Unlimited Images
  • Django Security Measures

Installation

Follow these steps to set up and run the GreatKart E-commerce Website on your local machine:

  1. Clone the GitHub Repository:

    git clone https://github.com/sree-hari-s/Ecommerce_New_Project.git
  2. Install and create a virtual environment:

    virtualenv env
  3. Activate the virtual environment:

    • On Windows:

      env\Scripts\activate
  4. Install the project requirements:

    pip install -r requirements.txt
  5. Create a .env File and Fill in Required Environment Variables In your project directory, create a .env file (similar to .env-sample) and fill in the required environment variables as follows:

    SECRET_KEY=django_secret_key
    DEBUG=True/False
    EMAIL_HOST=smtp.gmail.com
    EMAIL_PORT=587
    EMAIL_HOST_USER=example@gmail.com
    EMAIL_HOST_PASSWORD=password
    EMAIL_USE_TLS=True

    5.1 Generate Secret Key in Django Using get_random_secret_key() Function

    Django provides a convenient function called get_random_secret_key() to generate a secret key. This function returns a string of 50 random characters, making it the official way to generate a secret key in Django. Here are the steps to generate a Django secret key:

    1. Access the Python Interactive Shell: To access the Python Interactive shell, run the following command in the terminal of your Django project:

      (env) $ python manage.py shell

      You'll know you're in the shell when each new line is prefixed with >>>.

    2. Import get_random_secret_key() from django.core.management.utils: Before generating the secret key, import the get_random_secret_key() function from django.core.management.utils. Run the following command and press Enter:

      >>> from django.core.management.utils import get_random_secret_key
    3. Generate the Secret Key in the Terminal: Now, you can use the get_random_secret_key() function to generate the secret key. Execute the following command:

      >>> print(get_random_secret_key())

      A random secret key will be generated and displayed on the next line. Your generated key will be different from the example shown above, as it is entirely random.

  6. Migrate the project to the database:

    python manage.py makemigrations
    python manage.py migrate
  7. Run the project:

    python manage.py runserver

ecommerce_new_project's People

Contributors

sree-hari-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ecommerce_new_project's Issues

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.