I want to deploy Django application on nGINX server. I’m using uWSGI. I looked up in many tutorials but none worked.
Django application runs perfectly as a standalone app. What is the simplest way to have the same app running on nGINX??
I’m stuck here and want a solution.. 🙁
my www folder is in /usr/share/nginx/www
my site-enabled n conf.d and all are in /etc/nginx/
I did install uWSGI but couldn’t find any folder named uwsgi which has apps-installed folder/file in it
Once you have created an dJango application. Just follow these steps:
STEP 1. Create a file say uwsgi.ini in your Django Project Directory. i.e besides manage.py
STEP 2. Under /etc/nginx/sites-available add .conf file
STEP 3. In nginx.conf, pass the request to your Django application
Under the server { } block,
STEP 4. Run the uwsgi.ini
Now any request to your nGINX will pass the request to your Django App via uwsgi.. Enjoy 🙂