To run your application you need a yourapplication.wsgi file. This file
contains the code mod_wsgi is executing on startup to get the application
object. The object called application in that file is then used as
application.

For most applications the following file should be sufficient:

fromyourapplicationimportmake_appapplication=make_app()

If you don’t have a factory function for application creation but a singleton
instance you can directly import that one as application.

Store that file somewhere where you will find it again (eg:
/var/www/yourapplication) and make sure that yourapplication and all
the libraries that are in use are on the python load path. If you don’t
want to install it system wide consider using a virtual python instance.

The last thing you have to do is to create an Apache configuration file for
your application. In this example we are telling mod_wsgi to execute the
application under a different user for security reasons: