[PYTHON] Web App Development Practice: Create a Shift Creation Page with Django! (Introduction)

It's about time I decided to work on a proper work with Django, so I decided to make a web application for shift creation first.

It seems to be very difficult to make shifts at the nursing care facility where I am currently working, so I will develop an alternative tool (note that versatility is not considered because it is assumed that it can be used at my workplace).

For the time being, I thought about various things in order to bring out the functions I wanted.

1. Shift (idea)

First, itemize the points that you will consider when creating shifts.

-** Staff work styles include "day shift" and "night shift" ** -** There are "commuting", "staying", and "visiting" as service forms for users (customers) **

We will consider these points.

-** The number of users, the number of users, the usage time and service form vary from day to day **

It is mainly decided by the day of the week, but I am alert because there are slight fluctuations.

-** Pick-up staff is required on days when there are "commuting users" **

A license holder is required, and an auxiliary staff is also required. It should also be taken into account that the number of staff in the facility is decreasing during that time (if there are "staying users", a separate staff to stay is required).

-** Night shift is required on days when there are "staying users" **

Basically, it's okay if you have one person, but since night shifts span days, you actually eat two days' worth of schedule (by the way, each staff member seems to have an upper limit of 10 times a month).

-** One staff member enters the kitchen on days when the cook is absent **

The person cannot serve customers properly for about an hour before and after lunch, so an extra number of people is required.

-** Conditions for each staff **

Some people can only come out by specifying the day of the week, and some people have limited work styles.

As mentioned above, it seems that this is the place. ** To be honest, at first I thought it would be cool if I could automate all of this shift creation programmatically, but I gave up because I didn't understand the algorithm I wrote above. ** **

Regain your mind and go to the next.

2. Shift (how to make)

This time, I briefly summarized the flow when actually making a shift (note that I have not made it myself, I just refer to the story I heard).

  1. ** Check the user's "calendar" and estimate the required number of personnel. ** **
  2. ** Check and consider the staff's "shift request table". ** **
  3. ** Think in terms of examples. ** **
  4. ** Type in (Exel). ** **

One thing I noticed here. Actually, ** 1 and 2 are separate materials, so you have to change your eyes each time you check, and then return to the Excel creation screen again. ** It's a hassle. I think it is better to display such information as it is on the creation screen.

So I decided to make it.

Next time, first from "Designing a database model".

Recommended Posts

Web App Development Practice: Create a Shift Creation Page with Django! (Introduction)
Web App Development Practice: Create a Shift Creation Page with Django! (Shift creation page)
Web App Development Practice: Create a Shift Creation Page with Django! (Write a base template)
Web App Development Practice: Create a Shift Creation Page with Django! (Authentication system processing)
Web App Development Practice: Create a Shift Creation Page with Django! (Experiment on admin page)
Web App Development Practice: Create a Shift Creation Page with Django! (Design of database model)
Create a Todo app with Django ③ Create a task list page
Create a simple web app with flask
Create a Todo app with Django ④ Implement folder and task creation functions
Create a Todo app with Django REST Framework + Angular
Create a Todo app with the Django REST framework
Create a Todo app with Django ⑤ Create a task editing function
Create a homepage with django
Web application creation with Django
Create a web API that can deliver images with Django
Create a Todo app with Django ① Build an environment with Docker
Build a web application with Django
Create a file uploader with Django
Play like a web app with ipywidgets
Create a GUI app with Python's Tkinter
Daemonize a Python web app with Supervisor
Create your first app with Django startproject
Create a web service with Docker + Flask
I made a WEB application with Django
Create a web app that can be easily visualized with Plotly Dash
"Trash classification by image!" App creation diary day3 ~ Web application with Django ~
Django Tutorial (Blog App Creation) ① --Preparation, Top Page Creation
How to develop a cart app with Django
WEB application development using Django [Admin screen creation]
Create a PDF file with a random page size
Create a page that loads infinitely with python
[Python] Build a Django development environment with Docker
Create a dashboard for Network devices with Django!
Build a Django development environment with Doker Toolbox
Create a new page in confluence with Python
How to create a multi-platform app with kivy
Create a one-file hello world application with django
Until you create a new app in Django
Try creating a web application with Vue.js and Django (Mac)-(1) Environment construction, application creation
Extract data from a web page with Python
Deploy a Python 3.6 / Django / Postgres web app on Azure
I tried to create a table only with Django
What is a dog? Django App Creation Start Volume--startapp
Create a native GUI app with Py2app and Tkinter
[Practice] Make a Watson app with Python! # 2 [Translation function]
[Practice] Make a Watson app with Python! # 1 [Language discrimination]
Create a python development environment with vagrant + ansible + fabric
Looking back on creating a web service with Django 2
What is a dog? Django App Creation Start Volume--startproject
Deploy a Django app made with PTVS on Azure
To myself as a Django beginner (1) --Create a project app--
To myself as a Django beginner (4) --Create a memo app--
Build a development environment with Poetry Django Docker Pycharm
Deploy a real-time web app with swampdragon x apache
Articles that enable system development with Django (Python) _Introduction
Create a django environment with docker-compose (MariaDB + Nginx + uWSGI)
Deploy a web app created with Streamlit to Heroku
Development digest with Django
Django shift creation feature
How to deploy a web app made with Flask to Heroku
[Practice] Make a Watson app with Python! # 3 [Natural language classification]