I have a domain registered with site5.
I am moving over my application from php to bottle.py in Python. Please provide some information on how to do this:
Is this post relevant:
http://kb.site5.com/python/how-to-install-flask/
You should be able to use bottle.py without issues on all of our services.
As for the Flask article you linked, it is similar, however there are some big differences from my understanding. Google may be helpful when it comes to the major differences between the two.
If you have any other questions, please feel free to leave a comment here. You can also contact our support department directly by opening a ticket though Backstage or by email us directly at [email protected]
Will something like this work on site5? What additional steps do I need to set it up so that all traffic to my website (www.mayankag.com) goes through the python app?
I am currently unsure on the technical aspects of bottle, however I am researching it and I am working on an article on how to install Bottle. I should have it up on our KnowledgeBase in the next day or two.
Once the article is up, I will reply back here with a direct link to it for your convenience.
For example, the traffic to / is directed to /index.php
Question 1:
If I follow the steps in the above tutorial, will the website support both .php files in the root, as well the bottle .py routes?
Question 2:
In your current setup, the urls need to have /index.fcgi/ in the beginning. How can I get rid of that? In other words, how can I setup such that the url looks:
I apologize about the confusion regarding question two. Because of the way the htaccess file is setup, bottle will work with or without the URLs having “index.fcgi”.
In regards to your first question, PHP files should work fine alongside the bottle setup.
If you have any other questions, please feel free to let us know!
Answer #1
Hello Mayank,
I hope this reply finds you well!
You should be able to use bottle.py without issues on all of our services.
As for the Flask article you linked, it is similar, however there are some big differences from my understanding. Google may be helpful when it comes to the major differences between the two.
https://www.google.com/search?q=flask+vs+bottle
If you have any other questions, please feel free to leave a comment here. You can also contact our support department directly by opening a ticket though Backstage or by email us directly at [email protected]
Happy Hosting!