1. Victor Kotseruba
  2. superfcgi

Wiki

Clone wiki

superfcgi / DjangoCommand

Django Command

To use superfcgi in your django projects instead of flup you need to add superfcgi to settings module

INSTALLED_APPS = (
    ...
    'superfcgi',
    ...
)

After that you can start your application as fastcgi by manage.py command runsuperfcgi

For example:

$ python manage.py runsuperfcgi socket=/tmp/fcgi.sock

This command starts process, makes socket and starting to listen on that socket. Also you can specify count of workers and threads for each worker by parameters:

$ python manage.py runsuperfcgi socket=/tmp/fcgi.sock workers=10 threads=25

You can see other parameters by running command:

$ python manage.py runsuperfcgi help

Updated