Black Lives Matter. Please consider donating to Black Girls Code today.

Not clear on the 'yourapplication.wsgi' file and its content when deploying Dash

Hi,

I have successfully installed Apache 2.4 on a Windows 7 machine and also the necessary wsgi folder and installed of course WSGI in Python. But when I try to run my sample Dash application (wsgi_app.py), I get the following error from Apache error log:
[Wed Jul 04 14:51:22.913235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] mod_wsgi (pid=16468): Failed to exec Python script file ‘C:/wsgi_app/wsgi_app.py’.
[Wed Jul 04 14:51:22.914235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] mod_wsgi (pid=16468): Exception occurred processing WSGI script ‘C:/wsgi_app/wsgi_app.py’.
[Wed Jul 04 14:51:22.914235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] Traceback (most recent call last):\r
[Wed Jul 04 14:51:22.914235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] File “C:/wsgi_app/wsgi_app.py”, line 11, in \r
[Wed Jul 04 14:51:22.914235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] from yourapplication import app as application\r
[Wed Jul 04 14:51:22.914235 2018] [wsgi:error] [pid 16468:tid 1080] [client ::1:63732] ImportError: No module named ‘yourapplication’\r

This is what I have as the first line in my python file (wsgi_app.py)
from yourapplication import app as application

But I have no clue what goes in the ‘yourapplication.cgi’. From what I read from here http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/#troubleshooting, you have to add some line regarding mod_wsgi.

Any suggestions are appreciated.