PyWPS-Demo comes with configuration file, which shall work for both - Flask and Apache2 deployment. It’s stored in pywps.cfg some default values. You are adviced to play with the configuration values and see what they do. More detailed documentation about PyWPS configuraition can be found at

Also have a look at File structure of PyWPS-Demo chapter, which describes file and directory structure of PyWPS-Demo.