B
B
BarneyGumble2016-10-10 13:05:47
Flask
BarneyGumble, 2016-10-10 13:05:47

How to run an application in Python (Flask)?

Good afternoon. I apologize in advance for the noob question.

There is a task to run the sent application in Python (Flask)

Previously, I had nothing to do with Python stories at all, only with PHP

I uploaded it to the hosting - I open it in the browser - there is nothing. Only the Apache start page, which opens in those very cases when the opening of an index file is not specified.

I don’t see any analogue of htaccess where it would be possible to specify the opening of any index file (and it’s not clear which file to specify as an index file)

On the server and python and flask are installed, I checked with support about this.

Help me deal with the launch of the application) I don’t know which side to even approach

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2016-10-10
@sim3x

flask.pocoo.org/docs/0.11/deploying/mod_wsgi

G
Gasoid, 2016-10-10
@Gasoid

you need to manually configure htaccess to work with wsgi
or run in cgi mode,
but before that you need to configure the virtual env, as there may be dependencies,
and this is again to correctly configure apache or hosting

I
Igor Che, 2016-10-11
@chewarer

If you only need to see if it works and how it works, and not run it in combat mode, then you can use the built-in server and not bother with the server settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question