I have been studying Django in development mode for two months, and now I am ready to speed up with most basic aspects of python + django. However, I used the built-in server-server until this time
Now I have a Webfaction hosting account and want to find out the following
1) Webfaction sets up a project with a specific version of Django (say 1.6.4) and a version of Python (say 2.7) initially
The project directory (for example, the MYAPP project) is / <> / webapps / MYAPP
When a site is in production mode, how does the Apache server know which version of Python and which versions of site packages to use with the MYAPP source code to render the site?
I see that the MYAPP folder has a lib / python2.7 folder, however, when I am connected to the SSH terminal and execute "what python", I see:
which python
/usr/local/bin/python
so, I suppose this is a Python executable that is used to render a website, and not in the webapps / MYSITE / lib / python2.7 folder? How is the flow of information / data about which programs will be used when rendering a site with apache mod_wsgi?
2) During testing, I used virtualenv in development mode. How to use it in webfaction in production mode?
3) I am using the Pycharm IDE. It worked well for development mode. I see that it has a remote interpreter configuration and a deployment parameter / option.
The python path that the remote interpreter configuration tool automatically detects is the python executable in / usr / local / bin / python
, python2.7 webapps/lib?
, PLS, ,