Python Tutorial

How To Pass Multiple Parameters Via Url In Django

If you find the Django url pattern is not easy to use when you want to pass multiple request parameters via url, you can use the original method to implement it. The original method is to use url like this http://127.0.0.1:8000/dept_emp/emp_list/?dept_id=1&user_name=jerry. It just adds the parameter name and value pair after the question mark (?) of

How To Pass Multiple Parameters Via Url In Django Read More »

Python Connect To MySQL Database With MySQL Connector & PyMySQL Example

When you want to connect to the MySQL database in Python code, you can use both the mysql-connector-python MySQL driver and PyMySQL. The mysql-connector-python MySQL driver is a MySQL server built-in driver and the PyMySQL is a third-party library. All the two MySQL python libraries provide classes for you to get MySQL database connection, execute insert, delete,

Python Connect To MySQL Database With MySQL Connector & PyMySQL Example Read More »