Skip to main content
  1. All Posts/

Ecommerce-foodie

eCommerce CSS

Foodie

Ecomerce Website

This project deals with developing a Virtual website ‘E-commerce Website’. It provides the user with a list of the various products available for purchase in the store. For the convenience of online shopping, a shopping cart is provided to the user. After the selection of the goods, it is sent for the order confirmation process. The system is implemented using Python’s web framework Django.

Foodie

This is basic E-comerce web app using

Frontend


Backend


Project installation and setup

Create virtuelenv Cmd

virtualenv venv

To Activate the virtual environment

venv/bin/activate

Install the requirements in the current environment

pip install -r requirements

Install django on this virtualenv

pip install django=<version>

After installed django create a project

django-admin startproject ecomerce-project

Then cd to new directory newly created

cd ecomerce-project

Next create apps ( accounts , shops , cart )

python manage.py startapp accounts

Create directories (static and templates)

mkdir static

Then makemigrations

python manage.py makemigrations

Migrate

python manage.py migrate

To run a Starting development server at http://127.0.0.1:8000

python manage.py runserver

Django server

Django administration creation

First Create a superuser id

python manage.py createsuperuser

Enter the username choice

Username: example

Enter email adress

Email adress : example@gmail.com

Enter The password

password : ******

Again Enter The password for confirmation

password (again) : ******

Superuser created successfully if above fields are entered correctly

Next run the server

python manage.py runserver

Open the django server page and now enter top url add /admin

http://127.0.0.1:8000/admin/

Django Admin login page

Enter the superuser id and unique password

Login successfully entered django administration page

Project Screenshots

Head home page

Register page

User can fill the register form first.

PostgreSQL database

User filled register form data collected on PostgreSQL Database auth user table.

Login page

The colleted auth user data Username and Password type on login form. unautherised people doen’t open login page . autherised user can login foodie page successfully.

Item details page

Item cart page