You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Running Python under LAMP 2.0

LAMP 2.0 supports Python 2.7 and connecting to MySQL, Oracle, and MS SQL servers.

You can either choose to run your Python code as a CGI script or as a WSGI application.  CGI would be appropriate for simple applications or one-off tasks (i.e. create a custom query to a backend DB).  WSGI is more appropriate for use with a web application framework like Django.

For managing your python modules we recommend that you use virtualenv.  We provide an experimental web interface for setting up a virtualenv environment and installing software that can be accessed from your LAMP splash page and adding "/lampadmin/virtualenv/" to the URL path.

  • No labels