The intended audience of this image is Python developers who want to bootstrap or test a Python application easily, in seconds.
Common packages have been installed:
mysql-python(libmysqlclient-dev, python-dev). You can then run
pip install mysql-python.
psycopg2(libpq-dev, python-dev). You can then run
pip install psycopg2.
virtualenv, so you can isolate your development environment
Also, a web environment is bootstrapped so you can deploy your web application easily.
To understand why this image is useful, let’s deploy a simple Django application.
Before starting, click the “Create a Server” button in the control panel.
You will land on the server-creation page where you can choose the Python image in the InstantApps tab for your Cloud Instance:
Choose the server type and click on the Create a Server button. This action starts your server.
In a few seconds, the server will be started.
This image makes it super easy to deploy your Django application, with nginx and uWSGI. The commands below can also be used to deploy another Python web application.
First of all, install Django and create your project:
Then, enable the nginx template to configure the virtualhost:
Also, you need to enable the uWSGI template:
Finally, restart services:
And you can open your browser and visit your IP to view your super new website!
IMPORTANT you may want to customize the nginx and uWSGI configuration templates we provided! We created these files only to help, because it’s always a pain to setup a web stack.
This image doesn’t contain databases, because we can’t really know which one you prefer.
To install MySQL, run:
If you think something is missing in this image, or if it would have been easier if you had this or that tool, or if this
You can make an issue and/or a pull request on github