Site5 - Built For Designers & Developers MENU

Do you support bottle.py in Python?

[2 Grey Star Level]

Hi,

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/

thanks
Mayank

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!

Answers Answered By: joliver [476 Blue Star Level]

Answer #2

My question was not to compare flask vs bottle but more on how to setup a simple service running bottle on site5.

For example, on my localbox I can startup a simple application using:

from bottle import run

@route(‘/’)
def home_page():
return “Hello World!”

run(host=’localhost’, port=8080)

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?

Do you have a writeup for this.

Answers Answered By: mayankag [2 Grey Star Level]

Answer #3

Hello again Mayank,

I apologize about the misunderstanding.

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.

Answers Answered By: joliver [476 Blue Star Level]

Answer #4

Any update on this Joliver?
thanks!

Answers Answered By: mayankag [2 Grey Star Level]

Answer #5

Hi Joliver,

I would really appreciate if you could publish the document today. I want to deploy my website today or over the weekend.

thanks a lot in advance!
Mayank

Answers Answered By: mayankag [2 Grey Star Level]

Answer #6

Hello again Mayank,

I apologize for the delay in getting back with you.

The article has been completed and can be found at the following link…

http://kb.site5.com/python/how-to-install-bottle/

Hope it helps!

Answers Answered By: joliver [476 Blue Star Level]

Answer #7

Hi John,

This is sincerely appreciated. Thanks!

I have a couple of follow up questions regarding the tutorial but I will ask them on the tutorial page.

Mayank

Answers Answered By: mayankag [2 Grey Star Level]

Answer #8

Posting my questions here as well:

Currently my domain http://www.mayankag.com serves basic .html and .php files

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:

http://www.yourdomain.com/hello/john

and NOT:
http://www.yourdomain.com/index.fcgi/hello/john

Question 1 is not important, I really just care about Question 2 i.e. how to get rid of index.fcgi in the url?

thanks
Mayank

Answers Answered By: mayankag [2 Grey Star Level]

Answer #9

Hello again Mayank,

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!

Answers Answered By: joliver [476 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.