Forums

WSGI configuration file. Pass a parameter to application file.

Hello I'm trying to set up my configuration file. I have a file server.py that accepts a parameter 'runserver' in order to make the application work, this user flask-script module. I import the server.py file "from server import app as application" in the WSGI file but i need to pass the parameter 'runserver' in order to make things work otherwise i get an error about not finding flask_migrate. Is there a way to pass a parameter to the server.py from the WSGI file or something similar?

Found the problem. I should have reload the application.

Excellent, glad you worked it out!