Deploying Django With AWS
<p>So I am trying to <strong>deploy</strong> my <strong>django</strong> app(which mostly has REST Apis) but when I use Amazon CLI, I end up having <strong>Fedora instance</strong>, while I <strong>want</strong> to use <strong>Ubuntu instance</strong>. </p>

<p>So I tried to do this, I made an ubuntu instance, made a repository of my code, installed git on ubuntu and cloned the code from git to ubuntu. Next thing, I installed all the requirements.txt dependencies and everything is in virtualenv and working fine. </p>

<p>But here's the <strong>catch</strong>, <code>python manage.py runserver</code> runs it on <code>localhost</code>(not really surprising). So the question is, how to serve those apis(not on localhost)?</p>

<p>As mentioned in the other answer, <code>runserver</code> command is only meant for local development. You can, in fact, make it listen on external interfaces by running it as <code>python manage.py runserver 0.0.0.0:8000</code>, but it is a bad idea. Configuring nginx+uwsgi to run a Django app is very easy. There are multiple tutorials and guides available for this. Here is the official uWSGI guide
<a href="http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html" rel="nofollow">http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html</a></p>

python django git amazon-web-services ubuntu