In the background of mysql-think-php, which of the following knowledge needs to be rewritten using Python?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.