// Module included in the following assemblies:
//
// * getting-started/openshift-web-console.adoc

:_content-type: PROCEDURE
[id="getting-started-web-console-deploying-python-app_{context}"]
= Deploying a Python application

The following procedure deploys a backend service for the `parksmap` application. The Python application performs 2D geo-spatial queries against a MongoDB database to locate and return map coordinates of all national parks in the world.

The deployed backend service that is `nationalparks`.

.Prerequisites

* You are logged in to the {product-title} web console.
* You are in the xref:../web_console/odc-about-developer-perspective.adoc#odc-about-developer-perspective[*Developer* perspective].
* You have a deployed image.

.Procedure

. From the *+Add* view in the *Developer* perspective, click *Import from Git* to open a dialog.
. Enter the following URL in the Git Repo URL field:
`https://github.com/openshift-roadshow/nationalparks-py.git`
+
A builder image is automatically detected.
+
[NOTE]
====
If the detected builder image is Dockerfile, select *Edit Import Strategy*. Select *Builder Image* and then click *Python*.
====
. Scroll to the *General* section.
. Ensure that you have the current values for the following:
.. Application: `national-parks-app`
.. Name: `nationalparks`
. Select *Deployment* as the Resource.
. Select *Create route to the application*.
. In the *Advanced Options* section, click *Labels* and add labels to better identify this deployment later. Labels help identify and filter components in the web console and in the command line. Add the following labels:
.. `app=national-parks-app`
.. `component=nationalparks`
.. `role=backend`
.. `type=parksmap-backend`
. Click *Create*.
. From the *Topology* view, select the `nationalparks` application.
+
[NOTE]
====
Click the *Resources* tab. In the *Builds* section, you can see your build running.
====

[role="_additional-resources"]
.Additional resources
* xref:../applications/odc-viewing-application-composition-using-topology-view.adoc#odc-adding-services-to-your-application_viewing-application-composition-using-topology-view[Adding services to your application]
* xref:../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-importing-codebase-from-git-to-create-application_odc-creating-applications-using-developer-perspective[Importing a codebase from Git to create an application]
* xref:../applications/odc-viewing-application-composition-using-topology-view.adoc#odc-viewing-application-topology_viewing-application-composition-using-topology-view[Viewing the topology of your application]
* xref:../applications/projects/working-with-projects.adoc#odc-providing-project-permissions-using-developer-perspective_projects[Providing access permissions to your project using the Developer perspective]
* xref:../applications/projects/working-with-projects.adoc#deleting-a-project-using-the-web-console_projects[Deleting a project using the web console]
