text: Title: Running project with nested app directories (create_app())
  Body: Hi, I'm following Miguel Grinberg's Flask book and trying to host his example using this image:
  https://github.com/miguelgrinberg/oreilly-flask-apis-video/tree/master/orders
  
  I have no issues hosting my own "single file" flask examples, but in this case he creates the app variable in create_app()/__init__.py. Is there any special trick to how to get it to work in uwsgi? To my understanding I have to create the app instance outside the __main__ function. Any suggestions how I may rewrite this example without "breaking" the ease of testing it locally by just issuing python run.py?
  
  Copying everything inside the __main__ function outside the function seems to do the trick, but I wonder if there's a better way around this. Additionally, I'm having issues to serve static files since the project is nested in two app directories. The first app dir contains run.py and another dir called app (which holds the static dir) while the image is looking for the static directory one level up (the same as run.py).
  
  Any suggestions on how to solve this in a good way are highly appreciated.
  I'm still new to flask so sorry if this is a stupid question or a silly way to structure a project. :)