Skip to content

The laundry-management-System website was built in Django (a Python framework) as a backend language, HTML, CSS, and JavaScript for the frontend, and MySQL for the database operations.

Notifications You must be signed in to change notification settings

ayeujjawalsingh/Laundry-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi 👋🏻, I'm Ujjawal Singh

Project Installations in Local System

Tools & Technology Required

  • Python
  • Django
  • HTML
  • CSS
  • Javascript

Run Locally

  • Download the Project and Unzip it
  • Open Commant Prompt

You must have Python3 installed in your system

Go to the project directory

    cd Laundry-Management-System

Create Virtual Envoirnment of Python

    pip install virtualenvwrapper-win

Make Virtual Envoirnment as I named it venv

    mkvirtualenv venv

Open Virtual Envoirnment as

    workon venv

Development Server started at localhost:8000


Development Documentations

Install Django in Virtual Envoirnment

Installation

Run this command to install virtual wrapper which will allows you to make virtual envoirnment

pip install virtualenvwrapper-win

Make Virtual Envoirnment as name venv

mkvirtualenv venv

Open the Command Prompt in Project Directory as F:\Users\Ujjawal\Coding\Developement> workon venv

workon venv

Install Django in Virtual Envoirnment as (venv) F:\Users\Ujjawal\Coding\Developement>pip install django

pip install django

Run this to Check django-admin Available Subcommands:

django-admin

Now, Create Django-Project by using django-admin subcommands as django-admin startproject (projectName)

django-admin startproject project

Then Change you directory inside the folder name project


Setup files and folders

Now, create django app as python manage.py startapp (appName)

python manage.py startapp backend

Add this folder backend in setting.py file of our project file inside INSTALLED_APPS

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'backend', # Added here
]

Now, Add Static files and urls in same file as (static file created by us to store all static webpage contents) import os

STATIC_URL = '/static/'
MEDIA_URL = '/images/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR,'static')
]

Now, open urls.py file of project folder

Add urls of backend file as

import include from django.urls

urlpatterns = [
    path('admin/', admin.site.urls),
    path('',include('backend.urls')), # Added here
]

urls.py

Create urls.py file in backend folder

from django.urls import path
from . import views

path will be use to make urlpatterns importing views from the same directory so we use ( . )

Now, create urlpatterns from routing from one path to other as

from django.urls import URLPattern, path
from . import views
urlpatterns = [
    path('', views.home, name ='home'),
]

path('address', function defined on views , name)


Templates

Create a folder name templates in backend directory Inside this folder, we will store all html file/templates

index.html

create a sample index.html file to display with your django development server as

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="{% static 'css/style.css'%}" rel="stylesheet">
</head>
<body>
    <h1>Hello Ujjawal Singh</h1>
</body>
</html>

Static

Create a folder name static in backend directory Inside this folder, we will store all css js img and other files

css

Create folder as css in static directory and then create style.css file in css directory and write all css components there and add this link in head tag of index.html as

<link href="{% static 'css/style.css'%}" rel="stylesheet">

Must add {% load static %} on html file to include the external static directory


views.py

define function in your views as

from django.shortcuts import render

def home(request):
    return render(request, 'templates/index.html')

return render( request , return )

In this file, we will define our all function and backend logic to render it to the output screen

Project Demonstration

Signup

Home Screenshot

Signin

Service Screenshot

Home Page

Laundry Management System Laundry Management System

Laundry Request

Laundry Management System Laundry Management System

Laundry Request Submission

Laundry Management System

Laundry Status

Laundry Management System

Laundry Status Result

Laundry Management System

About us

Laundry Management System

Admin Signin Page

Laundry Management System

Admin Home Page

Laundry Management System


Video

LMS.Project.Demonstration.mp4

About

The laundry-management-System website was built in Django (a Python framework) as a backend language, HTML, CSS, and JavaScript for the frontend, and MySQL for the database operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published