Actual project
The demand is that we want to implement fire notification, that is, when someone finds a fire, we notify our firefighters and the fire situation in time, and ask them to leave the team and plan a route so that they can arrive immediately
To use all the knowledge we have learned
- Database: I use MySQL. Of course, any other database can be used. See which database you know well
- Socket: The socket is used here to obtain the resources of the database. The explicit point is to add, delete, and modify the database.
- django: This is our core code area, he played (the most commonly used sentence in our language class at that time) ------> the excessive role of inheritance
- HTML: This is why django took it out, because his workload is not small, but also plays a decisive role
Okay, probably after the content is introduced, then the specific requirements
1. Data encoding method
There are seven data in total, and the structure is as follows
0000 00 0
1 ~ 4 means building number
5 ~ 6 means fire floor
7 means fire class
for example:
0011191 means the fire broke out on the 19th floor of the Haxi Commercial Building, with a fire class of 1
0022042 said that the fire broke out on the 4th floor of Tower A of Guanjiang International, with a fire rating of 2
Django management interface
Harbin Fire Control Center
Fire building name | Person in charge of fire protection in fire building | Fire floor | Fire Squadron under its jurisdiction | Fire class | Fire time |
---|---|---|---|---|---|
West City Red Square | Zhang Xqiu | 19 | Special Service Brigade of Harbin City Fire Brigade | 1 | 2020/00/0007:48 |
Route plan