Here at Webhostpython.com, we completely support Python and the Django framework. This has been one of our main focal points, hence the name “Webhostpython”. We are avid supporters of this beautiful programming language.
Our Python plans support multiple versions of not only Python, but of Django and other frameworks as well, making this an ideal web hosting environment for developers looking to develop in an ever-evolving yet stable environment
Uploading your Python Application to our server
In order to get started, all you need to do is the following:
1. Upload your application that was created on your local machine via FTP/SFTP/cPanel File Manager to a path such as /app1 . There is no right or wrong folder to upload your application to, we’re just using “app1” here as an example.
2. After this, login to cPanel, head to Software -> Setup Python App
3. Now, click the Blue “CREATE APPLICATION” button
4. Select values such as:
Python version: [Pick the appropriate version]
Application root: /app1 [or whatever folder you uploaded to]
Application URL: / [or /subfolder, etc]
Application startup file: This is the path to your wsgi.py file. This may be app1/wsgi.py for example.
Now click on Create which will take you here:
That’s it! This screen is important as it tells you your “Virtual Environment” which is needed so you can install your required modules, pandas, requests, etc. via SSH. In this example, it tells me:
To enter to virtual environment, run the command: source /home/migrate/virtualenv/app2/3.7/bin/activate && cd /home/migrate/app2
To do this, log into SSH using the cPanel Username and password for this account as well as the proper port (Ask support for this if you do not know it)
Now that you’ve loaded the Virtual Environment, you will then be inside of your virtual environment and can then run “pip install [module]”.