Django:1.6.5,python:2.6,centOS: 6.5,nginx:1.8.0-1
There are wsgi.py and prod.ini files under the django application
prod.ini file:
wsgi.py:
But how to associate it with nginx? I installed nginx through yum install nginx and modified the /etc/nginx/conf.d/myapp.conf file. The content is as follows:
How to configure it?
Change 9090 in
/etc/nginx/conf.d/myapp.conf
to 8000, and then change server 8000 to another port, such as port 80.Then in order to display images, js, css, the following configuration is required
If the configuration is successful, it is recommended to use
gunicorn
替换uwsgi
for better performance.