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.
- You have an account and are logged into cloud.scaleway.com
- You have configured your SSH Key
To understand why this image is useful, let’s deploy a simple Django application.
First, we need to create a new cloud server using the Python InstantApp. Click the “Create Server” button in the control panel.
You land on the server creation page where you must input information and choose an image.
After inputting your server basic information, select the Python image for your server.
On the ImageHub tab, select Python and click the “Create Server” button.
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