Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check out my blog post on deploying Django behind uwsgi <a href="http://blog.johannesklug.de/2012/11/27/deploying-django-behind-nginx-with-uwsgi-and-virtualenv/" rel="noreferrer">http://blog.johannesklug.de/2012/11/27/deploying-django-behind-nginx-with-uwsgi-and-virtualenv/</a>. I created an ini-File to setup uwsgi, which points to the app callable with the parameter <code>module=project.wsgi:application</code>.</p> <p>The whole file reads something like this:</p> <pre><code>(env)[project@host ~]$ cat uwsgi.ini [uwsgi] # path to where you put your project code chdir=/home/project/project # python path to the wsgi module, check if you have one module=project.wsgi:application # this switch tells uwsgi to spawn a master process, # that will dynamically spawn new child processes for # server requests master=True # uwsgi stores the pid of your master process here pidfile=/home/project/master.pid vacuum=True # path to your virtual environment home=/home/project/env/ # path to log file daemonize=/home/project/log # this is where you need to point nginx to, # if you chose to put this in project home make # sure the home dir is readable and executable by # nginx socket=/tmp/uwsgi.sock ### SEE UPDATE NOTICE FOR THIS ONE env = DJANGO_SETTINGS_MODULE=project.settings </code></pre> <p>Please note that I'm using virtualenv.</p> <p>You might also be missing the lines</p> <pre><code>import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") </code></pre> <p>in your wsgi.py</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload