How to do it...

Let's have a look at the following steps:

  1. On the Dashboard, open the Web tab:

PythonAnywhere: Web app view
  1. The interface tells us that we don't have a web application yet. By selecting Add a new web app, the following view opens. It tells us that our applications will have the following web address: loginname.pythonanywhere.com (for this example, the web address of the application will be giazax.pythonanywhere.com):

PythonAnywhere: Web app wizard
  1. When we click on Next, we can select the Python web framework we want to use:

PythonAnywhere: Web framework wizard
  1. We select Flask as a web framework, and then click on Next to choose which Python version we want to use, as shown here:

PythonAnywhere: Web framework wizard
Flask is a micro-framework for Python that is easy to install and use, and is used by companies such as Pinterest and LinkedIn.

If you don't know what a framework for creating web applications is, then you can imagine a set of programs with the aim of facilitating the creation of web services such as web servers and APIs. More information on Flask can be found at http://flask.pocoo.org/docs/1.0/.
  1. In the preceding screenshot, we select Python 3.5 for Flask 1.0.2, then let's click on Next to enter the path for a Python file to use in order to hold the Flask application. Here, the default file is selected:

PythonAnywhere: Flask project definition
  1. When we click on Next for the final time, the following screen is displayed, which summarizes the web application's configuration parameters:

PythonAnywhere: Configuration page for giazax.pythonanywhere.com

Now, let's see what happens with this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.180.32