torels2 Posted January 4, 2014 Posted January 4, 2014 Hello!I'm trying to use a bottlepy script Bottlepy is a one-file framework (http://bottlepy.org)This is the hello world example I am trying to get working (straight from documentation, apart from the shebang) #!/usr/local/bin/python2.7 from bottle import route, run @route('/hello') def hello(): return "Hello World!" my bottle.py file is in the same directory (/maxartmod.tk), which is an addon domain as well This is my .htaccess file in that directory Options +ExecCGI AddHandler cgi-script .cgi .py RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.wsgi/$1 [L] the helloworld's name is index.wsgi When I navigate to maxartmod.tk/hello I get an Internal server error How can I solve this problem? Thanks in advance :)/&--#62;
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now