running Apache + Bottle + Python

后端 未结 4 1760
夕颜
夕颜 2020-12-16 01:20

I\'m trying to run Bottle.py with Apache and mod_wsgi.

I\'m running it on windows, using a xampp. python v2.7

My Apache config in httpd:

<         


        
4条回答
  •  甜味超标
    2020-12-16 02:19

    There's no connecting point from your wsgi file to your hello.py file.
    Put the content in your hello.py into the app.wsgi and restart your web server.
    That should resolve the problem.

    To make your application modular such that you can put the code into various files, check out Bottle's equivalent of Blueprints (used by Flask framework)

提交回复
热议问题