Answer the question
In order to leave comments, you need to log in
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
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.
Since you have already decided on the web right away, then learn Django or Flask right away.
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.
Look towards wsgi better, this is the standard solution for python interaction with a web server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question