django-admin startapp <name> [directory]
Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory
Arguments
Name | Description |
---|
name | Name of the application or project |
directory | Optional destination directory |
Options
Name | Description |
---|
--template <TEMPLATE> | The path or URL to load the template from |
--extension, -e <EXTENSIONS> | The file extension(s) to render (default: "py"). Separate multiple extensions with commas, or use -e multiple times |
--name, -n <FILES> | The file name(s) to render. Separate multiple file names with commas, or use -n multiple times |
-h, --help | Show this help message and exit |
--version | Show program's version number and exit |
-v, --verbosity <{0,1,2,3}> | Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output |
--settings <SETTINGS> | The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable will be used |
--pythonpath <PYTHONPATH> | A directory to add to the Python path, e.g. "/home/djangoprojects/myproject" |
--traceback | Raise on CommandError exceptions |
--no-color | Don't colorize the command output |
--force-color | Force colorization of the command output |