Skip to content Skip to sidebar Skip to footer

Running Python On Server With Mac

I'm trying to run my python files at this address: http://usersignup.drawyourpets.com/. As you can see, it's displaying the files in the folder but not actually running them (EDIT:

Solution 1:

Apparently, according to hostgator, you have to add these lines of code to the top of your .htaccess file:

Addhandler cgi-script .py.pl.cgi
DirectoryIndex main.py

But that isn't enough to get this python file to run on a HostGator website, because HostGator doesn't support webapp2, which is used several times throughout this file. Now I'm trying to figure out what I can use in place of webapp2 (See New Question).

Post a Comment for "Running Python On Server With Mac"