Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving from PHP to Python

Tags:

python

php

Currently I do all of my web-based programming in PHP, and each day I get more and more anxious to try Python.

Not that I haven't played with it in an interpreter, but I mean really, write a web-based project in Python, and possibly move pretty much exclusively over to Python.

But, I know that Python isn't strictly a web-based programming language (which is awesome) which makes me wonder if there are any hoops to jump through to use it on the web.

A simple example would be, that I'm sure there's no $_POST like variables in Python by default. How does functionality like that find its way into Python?

How do I move from PHP to Python smoothly? How do I use Python on the web?

like image 499
Carson Myers Avatar asked Jan 25 '10 08:01

Carson Myers


Video Answer


2 Answers

Here are some other web frameworks for your reference.

like image 173
ghostdog74 Avatar answered Sep 18 '22 17:09

ghostdog74


Python is unlike PHP executed by a CGI like interface. This interface has an API to such variables.

Frameworks like Django incorporate that API. It's recommended to use such a framework which makes a lot of things easier.

like image 30
Ikke Avatar answered Sep 20 '22 17:09

Ikke