M
M
Maxim2019-10-01 12:36:38
Python
Maxim, 2019-10-01 12:36:38

How to start making a python application on shared hosting?

To learn the python language and web development on it, I chose the free virtual hosting jelastic.
I created an Apache server + Python 3.7 environment.
ROOT directory > /var/www/webroot/ROOT/
There are two files:
pyinfo.py
wsgi.py
How do I set up and organize my application here?
What to write in the wsgi.py file?
As I understand it, it is now configured in such a way that it gives me information from the pyinfo.py file on the home page.
I just want to get an empty project so I can train from scratch, without a framework. Connect with the database, display information on the frontend, etc.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir, 2019-10-01
@vintello

Don't confuse cause and effect.
the project is immediately developed on the local machine and only then placed on the hosting.

V
Vadik Mirny, 2019-10-01
@vados007mir

python libraries need to install everything

S
szelga, 2019-10-01
@szelga

1. install the necessary python packages in the virtual environment.
2. to wsgi.pyprescribe the activation of the virtual environment or manually prescribe site-packages.
3. write "entry point" aka WSGI-"application" according to the documentation of the WSGI library you choose.
for django it's well documented here . in general, for starters, it’s better to work on your computer, and upload something already more or less working to the hosting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question