Running Python On Server With Mac

前端 未结 1 1619
借酒劲吻你
借酒劲吻你 2021-01-15 22:40

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 th

相关标签:
1条回答
  • 2021-01-15 23:00

    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).

    0 讨论(0)
提交回复
热议问题