Django project to domain, vps
<p>I have VPS-server (CentOS 6.8)</p>

<p>I installed Python 3.5.2 and Django 1.10.1 on virtual enviroment</p>

<p>I connected my domain to VPS-server</p>

<p>Now:</p>

<pre><code>django-project:
(venv) /home/django_user/djtest/venv/django_project/django_project

domain:
/var/www/www-root/data/www/mydomain.com
</code></pre>

<p>I tried set <code>BASE_DIR</code> in settings.py to <code>'/var/www/www-root/data/www/mydomain.com'</code> but not working</p>

<p>How I can to connect django-project to domain?</p>

<p>Project is still empty, just created</p>

<p>Django project can't be served like this, you need some web-server application like gunicorn or apache too. </p>

<p>Just like you use <code>./manage.py runserver</code> you need some application to execute your django project corresponsing to command theses application are <a href="https://www.google.co.in/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwi5l_menqXPAhVD1oMKHT66BHAQFggdMAA&amp;url=http%3A%2F%2Fgunicorn.org%2F&amp;usg=AFQjCNH4886vZhhVrpKRkAak1Ja0k68d3g&amp;sig2=CX1x8Pp8NmDM8DFIXNlMNA" rel="nofollow">Gunicorn</a>, <a href="https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/" rel="nofollow">ApacheWSGI server</a> and <a href="https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/" rel="nofollow">others</a>.</p>

<p>There will be a file <code>wsgi.py</code> that would have created when you created the project it's <strong>web server gateway interface</strong> it will interact with the above mentioned web-servers and server your django based website.</p>

python django dns vps