Django web project consists of applications, and each Django web project can contain multiple applications. This article will tell you how to create and add a Django application to a web project. All the operation is implemented in a virtual environment. Please read How To Install Python Django In Virtual Environment first if you do not […]
When you develop a Python application, you may want to make your develop environment-used libraries independent from other libraries that the system provided or other projects used. And then create the project in that isolated environment, so that the project can use the library it needs only and each project will not influence each other.
Django is the most popular web framework in the python world. You can use it to create a website quickly and simply. Selenium is the most popular website automation testing framework, it can be used to implement website automation function testing in source code with coding language python, java, etc. This example will tell you
When you write an automation test case with python, you always need to test the functions in different web browsers such as Firefox, Chrome, Safari, and IE. Python can help you to do this with the python selenium library. This article will tell you how to configure and start related web browsers in python source
When I run below python selenium Webdriver source code to open a Firefox browser to run an automation test in macOS, I meet an error message selenium.common.exceptions.WebDriverException:Message: ‘geckodriver’ executable needs to be in PATH. This article will tell you how to fix it.
This example will tell you how to use python’s built-in json and csv modules to convert a CSV file to a JSON file, it also shows how to convert a JSON file to a CSV file. The example files are listed in the above picture. I will explain them below. CSVJSONConvertionExample.py: This is the python source
CSV is the abbreviation of Comma Separated Values, CSV file is a text file contains CSV format content. Below is an example of CSV file content, it is so simple. We can see that there are three lines in the file, the first line is the header field name line, there are three fields. The
Random string is used widely in password, uuid, captcha text, verification number etc. Python string, random and uuid module provide method to generate random string with digit or alphabet content or digital and alphabet mixed content. This article will show you some examples.
This example tell you how to convert a python list element to a python string, the list data can be pure string data or mix data type such as string, number and boolean. The methods below also applicable to python tuple ( read only python list ), just replace [ ] to ( ). Below
Random captcha is very useful in web applications. It can be used to avoid network attacks. Python captcha module can help you to create both image and audio captcha easily. This article will show you how to create image and audio captcha file use the python captcha library.