Python – bunch of difficult sets of scripts on 80%. It is have own pros and cons. Very often – it is problems of difficult dependencies of application, when in OS we see old version of Python interpretator.
Building own version from source is the most appropriate variant of solving if need to use it only for local application in environment of some user or web servers.
Here is sample of commands of shell for getting copy of installation of Python in special directory – /opt.

And now we can get a pseudo-virtual environment of python. Python style for local modules of user. Of course, will be links on system modules, but installation with pip now will be use the local directories.

Since we already have a project directory, we will tell Django to install the files here. It will create a second level directory
with the actual code, which is normal, and place a management script in this directory. The key to this is the dot at the end
that tells Django to create the files in the current directory:

The first thing we should do with our newly created project files is adjust the settings. Open the settings file with your text editor (digital/settings.py). We are going to be using the default SQLite database in this guide for simplicity’s sake, so we don’t actually need to change too much. We will focus on configuring the static files directory, where Django will place static files so that the web server can serve these easily. At the bottom of the file, we will add a line to configure this directory. Django uses the STATIC_ROOT setting to determine the directory where these files should go. We’ll use a bit of Python to tell it to use a directory called “static” in our project’s main directory:

STATIC_ROOT = os.path.join(BASE_DIR, "static/")

Now, we can migrate the initial database schema to our SQLite database using the management script. Create an administrative user for the project… . Here you can find useful options for creation of password – https://docs.djangoproject.com/en/1.10/topics/auth/passwords/#password-validation

Finally, we can test your project. In your web browser, visit your server’s domain name or IP address followed by :8000 :

./manage.py runserver 0.0.0.0:8000
(http://server_domain_or_IP:8000)

You should see the default Django index page. If you append /admin to the end of the URL in the address bar, you will be prompted for the administrative username and
password you created with the createsuperuser command. When you are finished exploring, hit CTRL-C in the terminal window to shut down the development server.

We’re now done with Django for the time being, so we can back out of our virtual environment by typing: deactivate

Next, preparation of Apache and module mod_wsgi you can find in other articles on site.