The background of the merchant is thinkphp, and the database is Mysql. Now I want to write this background in python, and then make a webpage adaptive. I can log on to it on my mobile phone. Merchant background functions include: merchant login, view the seller's order details, view the user's ticket purchase information, and click to redeem the ticket .... The background of the merchant is thinkphp, and the database is Mysql. Now I want to write this background in python, and then make a webpage adaptive. I can log on to it on my mobile phone.
Merchant background functions include: merchant login, view the seller's order details, view the user's ticket purchase information, and click to redeem the ticket.
There are not many ways to do this. My general idea is:
Use flask to write a login page. The account and password are also obtained from the previous Mysql, and then the data displayed in the background calls Mysql directly, the "click to vote" button also directly changes a value of the database '.
I am a beginner in Php + python. There are several problems:
① Can python web programs and Php programs be placed on the same server?
② How do I write a page button that calls the database directly? What database is used?
③ The account and password obtained in the thinkphp database have been md5 processed. Can I log on to the login page written in Python?
Reply content:
The background of the merchant is thinkphp, and the database is Mysql. Now I want to write this background in python, and then make a webpage adaptive. I can log on to it on my mobile phone.
Merchant background functions include: merchant login, view the seller's order details, view the user's ticket purchase information, and click to redeem the ticket.
There are not many ways to do this. My general idea is:
Use flask to write a login page. The account and password are also obtained from the previous Mysql, and then the data displayed in the background calls Mysql directly, the "click to vote" button also directly changes a value of the database '.
I am a beginner in Php + python. There are several problems:
① Can python web programs and Php programs be placed on the same server?
② How do I write a page button that calls the database directly? What database is used?
③ The account and password obtained in the thinkphp database have been md5 processed. Can I log on to the login page written in Python?
1. Of course. The front end can be integrated with nginx.
2. pip install mysql
3. Based on 2, the user name and password are obtained and their md5 is the same.