This newly introduced Python Manager enables users to modify the existing Python version and activate Python-compatible applications for their projects. Positioned adjacent to PHP Settings, it provides effortless access to a range of Python management choices with just a single click.
Python stands as a highly significant language for application development, boasting an extensive history.
Its standard library encompasses support for numerous Internet protocols, encompassing JSON, FTP, IMAP, HTML, and XML.
Python-based software assumes various forms:
For web development, this includes:
For scientific and numerical computing:
For software development:
For system administration:
Python proves to be beginner-friendly, fostering ease of learning and application, whether one is new to programming or an adept developer.
Supported by a thriving community, Python enjoys the organization of conferences and workshops, collective code development projects, comprehensive documentation tailored for newcomers, and actively maintained mailing lists to keep users well-informed.
Within the Control Panel's Python Manager segment, you can configure the Python version for your account. You have the option to select from Python 2.7, Python 3.1, and the most recent release – Python 3.5.
To provide you with a more comprehensive understanding of how Python-based applications function on our servers, we will guide you through the process of installing the Mezzanine CMS, which is powered by the Django framework. This installation will be carried out via SSH.
Step 1: Generate a virtual environment (venv) within the root directory of your account. In our context: /usr/local/python-3.5/bin/virtualenv /home/venv/
Step 2: Access the freshly established virtual environment with this command: source /home/venv/bin/activate
Step 3: Navigate to the "www" folder of your hosting account: cd /home/www/
Step 4: Install the Mezzanine CMS binaries along with the corresponding modules fastcgi support and flup6:
NOTE: Ensure the "Outgoing Connections" option is disabled to prevent module installation failure.
Step 5: Establish the Mezzanine project within a chosen custom directory, in our case "mydjangocms": mezzanine-project mydjangocms
Step 6: Set up a domain or subdomain for the newly installed CMS. Deactivate the Jail host option to ensure proper module functionality.
Point your newly created domain or subdomain to the project path, in our example: "/www/mydjangocms".
Step 7: Access the recently created Mezzanine CMS folder: cd mydjangocms
Step 8: Set up a database for your CMS. In our scenario, we'll employ the sqlite3 database for simplicity (alternatively, you can configure a MySQL/PostgreSQL database by adjusting the Python setup file): python manage.py createdb
Follow the prompts to provide domain and user information. These credentials are for the CMS system, not the database. Optionally, you can choose to include demo content.
Step 9: Establish an .htaccess file in your project folder with the following entries:
Step 10: Create an index.fcgi file in your project folder with the following code (this will serve as the entry point for all CMS requests). Ensure to replace "mydjangocms" with your project name:
Step 11: Make the index.fcgi file executable: chmod +x index.fcgi
Step 12: Edit the settings file within "mydjangocms/settings.py" and replace: ALLOWED_HOSTS = 
With your actual host name: ALLOWED_HOSTS = ['mydjangocms.my-best-domain.net']
Step 13: Collect static files with this command: python manage.py collectstatic
Now, your site should be operational. In our example, the Mezzanine CMS can be accessed at: http://mydjangocms.my-best-domain.net/
You can now log into the Mezzanine CMS Admin Panel using the credentials established in step 8 and start creating content, such as a new blog.