Giter VIP home page Giter VIP logo

light-shop's Introduction

Heroku

django     HTML5     CSS     python     Javascript

 

⚠️ Important Update ⚠️

Hosting of this project has been removed since Heroku stopped free servers.

Light Shop

A Light shop ecommerce website with SQL database implemented using Django framework.

Details

Folder and App directory

The lightshop is project name and home is backened-app name in development process.

HTML Template

HTML components/pages are made dynamic using django-html to use python variables and loops in html. base.html file contains all header files and is the root template which is rendered i.e all other html files are imported in it.

Routing

All routes are in url.py(both in home directory and in lightshop directory), each template page is routed with specific functions in views.py to show data as per needed.

Database

SQLite is used for database. Backened-database can be accessed only by admin panel inbuild in django framework. modal.py shows declaration and defining of database's variables as well as their values.

Procfile

For Heroku hosting via gunicorn package.

Styling

Bootstrap version 5 is used for ease of designing.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

SECRET_KEY = API key

In settings.py this key is used as:

SECRET_KEY = config('The variable name in .env inside quotes')

If you store API key as string in .env then remove quotations inside config.

  • In .env file

      SECRET_KEY = 'API key'
    
  • In settings.py

      SECRET_KEY = config(SECRET_KEY)
    

light-shop's People

Contributors

dependabot[bot] avatar sushantgwr87 avatar

Watchers

 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.