M
M
Max Payne2015-01-31 13:50:21
Python
Max Payne, 2015-01-31 13:50:21

How to work with python on the server?

I decided to start learning python - but under the web right away :) And now something doesn't work to run the script on the server.
Added the following line to .htaccess:
AddHandler mod_python .py
But .py files are still displayed as text.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
OnYourLips, 2015-01-31
@OnYourLips

Forget Apache.
Develop on Django's built-in dev server for now.
But before you start working with Django, you need to get basic programming and Python programming skills.

A
Andrey K, 2015-01-31
@mututunus

Since you have already decided on the web right away, then learn Django or Flask right away.

N
NetBear, 2015-01-31
@NetBear

In my opinion, at this stage you need to give up all these dances with a tambourine. For those who want to focus on learning the language / writing code, and not on the skills of setting up a development environment, they came up with an awesome thing. The piece is called cloud IDE.
Upon a simple registration in the service, you get:
- actually an online IDE with support for a dozen of languages ​​and frameworks
- a virtual machine with root, on which it all runs
- a web server with customized URLs, etc.
- integration with Github, GAE, OpenShift, etc. etc.
I advise you to browse to:
- Codenvy
- Cloud9
- etc.
Almost everyone has a free plan.
Good luck.

Y
Yuri Shikanov, 2015-01-31
@dizballanze

Look towards wsgi better, this is the standard solution for python interaction with a web server.

A
Ali Aliyev, 2015-01-31
@ali_aliev

Might be worth a try How to deploy django?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question