Code Monkey home page Code Monkey logo

django---hotel-management-system's Introduction

Django - Hotel Management System

  • Requirement Analysis Document - System Design Document - Object Design Document - Mockups - Class Diagram - ER Diagram are in the "Documents" Folder.

  • It is hotel management system which has 5 different user types:
    Admin - Manager - Receptionist - Staff - Guest (Each of the types have different permission and functionality.)

  • There are some screenshots of the program on "Screenshots" folder.

In order to download and run the project ( It is assumed that Python 3 is already installed ):

  1. Install Django and Apps:
pip install Django==3.1.4
pip install django-phonenumber-field[phonenumbers]

Needed to create roles and admin account to add new employee accounts

  1. Change Directory to Django---Hotel-Management-System/HMS and start the Shell:
python3 manage.py shell
  • Then execute these, one by one:
from django.contrib.auth.models import Group, User
from accounts.models import Employee
Group.objects.create(name='admin')
Group.objects.create(name='manager')
Group.objects.create(name='receptionist')
Group.objects.create(name='staff')
Group.objects.create(name='guest')
user = User.createuser=User.objects.create_user('admin', password='admin123')
group = Group.objects.get(name="admin")
user.groups.add(group)
admin = Employee(user=user, salary=0)
admin.save()

Finally:

  • Exit the shell and set the database:
python3 manage.py makemigrations
python3 manage.py migrate

Then, start the surver

python3 manage.py runserver
  • This will work if correctly set up.

Notes:

Note 1: In the program, there are some payment page. No need to enter real credit-card informations. The payment page is just for the system, it doesnt work. However; after this page, a verification code is sent the user email address.

Note 2: You can only sign up as a guest to the system. In order to add employee (Manager - Receptionist - Staff):

  • Login in to the system with username: "admin" and password : "admin123"
  • Go the employee page on options in navbar.
  • Click "Add New Employee" button, fill the form and send it.
  • You will see the success message. Then, you can use that employee to enter the system

Note 3: For the email system (In some cases system sends e-mails):

  • Go to the HMS/setting.py
  • Under the settings file you can find the email settings, uncomment them in order to change the settings and put the email address you want to use to receive the rmails from the system.

django---hotel-management-system's People

Contributors

okanuregen avatar elballouti avatar ozdemirmrtcn 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.