Answer the question
In order to leave comments, you need to log in
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
Don't confuse cause and effect.
the project is immediately developed on the local machine and only then placed on the hosting.
1. install the necessary python packages in the virtual environment.
2. to wsgi.py
prescribe 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 questionAsk a Question
731 491 924 answers to any question