程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Computer graduation design Python+django train ticketing system (source code + system + mysql database + Lw document)

編輯:Python

Project Introduction

With the rapid development of modern train ticketing management, it can be said that train ticketing management has gradually become one of the most important parts of the modern train ticketing management process.However, my country's traditional train ticketing management has not established a complete and effective train ticketing management system for a long time, and the traditional train ticketing management has been unable to adapt to the rapid development, both in terms of efficiency and effect. It is expected to be very different, and it can be asserted that the traditional train ticketing management model is no longer suitable, and has even dragged down the development.Therefore, an easy-to-operate and efficient management system is required.

Development environment

Computer graduation design Python+django train ticketing system (source code+system+mysql database+Lw document)
Development language: Python
python framework: django
software version: python3.7/python3.8
Database: mysql 5.7 or higher
Database tool: Navicat11
Development software: PyCharm/vs code
Front-end framework: vue.js

System screenshot

1. Registration module: Tourist users can register their accounts in the system. The data to be entered for account registration include user name, password, confirmation password, email address, qq, etc. After submitting the registration information, the system judges the user input through js code.Check whether the registration data meets the specifications. If it meets the specifications, add a new user record in the system database. For security, use the md5 encryption algorithm to encrypt the password, and then store it in the database.

2. Login module: In the process of user login, it includes user name, password and verification code. The system needs to first judge whether the verification code is right or wrong. If the user logs in using the verification code, the user needs to enter the userIn addition to your name and password, you must also enter a verification code.After judging that the verification code is correct, judge the user name and password. Since the user password is encrypted with MD5, when judging the user password, the MD5 conversion of the password should be performed before the judgment. When the user name or password is incorrect, an error message is displayed when returning to the login page.

3. Site information management module: users publish site information, and the site information is stored in the activity table. The user clicks the activity release to enter the activity release page. After submitting the site information, the administrator reviews and manages the site information added by the user.

4. Member information management module: design the member information table of the system, the administrator manages the member information data, such as adding, deleting, modifying, querying, etc. When the administrator adds member information, after entering the member information, use jsThe function judges whether the input format is correct, and after the judgment is correct, inserts the member information data into the member information table.

5. Booking management module: design the booking information table of the system, the administrator manages the booking data, such as adding, deleting, modifying, querying, etc. When the administrator adds a booking, after entering the booking information,Use the js function to judge whether the input format is correct. After the judgment is correct, insert the booking data into the booking information table.

6. Train information management module: The train information management module includes train information entry, train information list, train information search, train information modification, and train information deletion. The database operations are realized through MySQL statements, and the data is placed in thehtml interface.

After users find the ticket they want to book in the previous step, they can jump to the detailed page of the ticket by clicking on the picture information of the ticket.In the detailed interface of the ticket, we display the picture of the ticket, the train number, the train name, and the train type.Departure time, arrival time, price, quantity, etc.At the same time, after logging in, users can collect the tickets they are interested in.If you want to buy this ticket, you can click the online purchase below.Buy this ticket.

This interface is the order information management interface.In the order information management interface, we can see the order number and ticket name.Picture of the ticket, type of ticket, starting point.Departure time, arrival time, corresponding price, quantity purchased, and the total price will be automatically calculated.When all the information is filled in, click Submit to submit the corresponding data to the database.
This interface is the train management interface, which mainly displays the train number, train name.The train type and the content of the train picture can also be clicked on the button behind.To view the modification and deletion of this train number information.

In order to make the overall data look more clear,We have added the function of graphical statistics.In the graphical statistics function, we show the specific conditions of different trains in the form of puzzles according to different types of trains


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved