'method[prefork or threaded (default prefork)]:method:(prefork threaded)'
'maxrequests[number of requests a child handles before it is killed and a new child is forked (0 = no limit).]:'
'maxspare[max number of spare processes / threads.]:'
'minspare[min number of spare processes / threads.]:'
'maxchildren[hard limit number of processes / threads.]:'
'daemonize[whether to detach from terminal.]:boolean:(False True)'
'pidfile[write the spawned process-id to this file.]:file:_files'
'workdir[change to this directory when daemonizing.]:directory:_files'
'outlog[write stdout to this file.]:file:_files'
'errlog[write stderr to this file.]:file:_files'
)
_arguments -s : \
$nul_args\
'*: :_values "FCGI Setting" $fcgi_opts'&&ret=0
}
_managepy-runserver(){
_arguments -s : \
'--ipv6[Tells Django to use an IPv6 address.]'\
'--nothreading[Tells Django to NOT use threading.]'\
'--noreload[Tells Django to NOT use the auto-reloader.]'\
'--nostatic[Tells Django to NOT automatically serve static files at STATIC_URL.]'\
'--insecure[Allows serving static files even if DEBUG is False.]'\
$nul_args&&ret=0
}
_managepy-shell(){
_arguments -s : \
'--plain[Tells Django to use plain Python, not IPython.]'\
'--no-startup[When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.]'\
'--interface=-[Specify an interactive interpreter interface.]:INTERFACE:((ipython bpython))'\
$nul_args&&ret=0
}
_managepy-sql(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlall(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlclear(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlcustom(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-dropindexes(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlflush(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlindexes(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-sqlinitialdata(){
_arguments -s : \
$nul_args&&ret=0
}
_managepy-sqlsequencereset(){
_arguments -s : \
$db_args\
$nul_args&&ret=0
}
_managepy-squashmigrations(){
_arguments -s : \
'--no-optimize[Do not try to optimize the squashed operations.]'\
$noinput_args\
$nul_args&&ret=0
}
_managepy-startapp(){
_arguments -s : \
$start_args\
$nul_args&&ret=0
}
_managepy-startproject(){
_arguments -s : \
$start_args\
$nul_args&&ret=0
}
_managepy-syncdb(){
_arguments -s : \
$noinput_args\
$no_init_data_args\
$db_args\
$nul_args&&ret=0
}
_managepy-test(){
_arguments -s : \
'--failfast[Tells Django to stop running the test suite after first failed test.]'\
'--testrunner=-[Tells Django to use specified test runner class instead of the one specified by the TEST_RUNNER setting.]'\
'--liveserver=-[Overrides the default address where the live server (used with LiveServerTestCase) is expected to run from. The default value is localhost:8081.]'\
'--top-level-directory=-[Top level of project for unittest discovery.]'\
'--pattern=-[The test matching pattern. Defaults to test*.py.]:'\
$noinput_args\
'*::appname:_applist'\
$nul_args&&ret=0
}
_managepy-testserver(){
_arguments -s : \
'--addrport=-[port number or ipaddr:port to run the server on.]'\
'--ipv6[Tells Django to use an IPv6 address.]'\
$noinput_args\
'*::fixture:_files'\
$nul_args&&ret=0
}
_managepy-validate(){
_arguments -s : \
$tag_args\
$nul_args&&ret=0
}
_managepy-commands(){
local -a commands
commands=(
"changepassword:Change a user's password for django.contrib.auth."
'check:Checks the entire Django project for potential problems.'
'compilemessages:Compiles .po files to .mo files for use with builtin gettext support.'
'createcachetable:Creates the table needed to use the SQL cache backend.'
'createsuperuser:Used to create a superuser.'
'collectstatic:Collect static files in a single location.'
'dbshell:Runs the command-line client for the current DATABASE_ENGINE.'
"diffsettings:Displays differences between the current settings.py and Django's default settings."
'dumpdata:Output the contents of the database as a fixture of the given format.'
'flush:Executes ``sqlflush`` on the current database.'
'help:manage.py help.'
'inspectdb:Introspects the database tables in the given database and outputs a Django model module.'
'loaddata:Installs the named fixture(s) in the database.'
'makemessages:Runs over the entire source tree of the current directory and pulls out all strings marked for translation.'
'makemigrations:Creates new migration(s) for apps.'
'migrate:Updates database schema. Manages both apps with migrations and those without.'
'runfcgi:Run this project as a fastcgi (or some other protocol supported by flup) application,'
'runserver:Starts a lightweight Web server for development.'
'shell:Runs a Python interactive interpreter.'
'showmigrations:Shows all available migrations for the current project.'
'sql:Prints the CREATE TABLE SQL statements for the given app name(s).'
'sqlall:Prints the CREATE TABLE, custom SQL and CREATE INDEX SQL statements for the given model module name(s).'
'sqlclear:Prints the DROP TABLE SQL statements for the given app name(s).'
'sqlcustom:Prints the custom table modifying SQL statements for the given app name(s).'
'sqldropindexes:Prints the DROP INDEX SQL statements for the given model module name(s).'
'sqlflush:Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed.'
'sqlindexes:Prints the CREATE INDEX SQL statements for the given model module name(s).'
"sqlinitialdata:RENAMED: see 'sqlcustom'"
'sqlsequencereset:Prints the SQL statements for resetting sequences for the given app name(s).'
'squashmigrations:Squashes an existing set of migrations (from first until specified) into a single new one.'
"startapp:Creates a Django app directory structure for the given app name in this project's directory."
"startproject:Creates a Django project directory structure for the given project name in this current directory."
"syncdb:Create the database tables for all apps in INSTALLED_APPS whose tables haven't already been created."
'test:Runs the test suite for the specified applications, or the entire site if no apps are specified.'
'testserver:Runs a development server with data from the given fixture(s).'