Jump to content

Recommended Posts

Posted

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;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...