为django创建用户
django-createuser的Python项目详细描述
django createuser
django-createuser是一个允许为django创建用户的包 使用./manage.py命令的应用程序。
安装
使用pip或pipenv安装:
pipinstalldjango-createuser
将django_createuser添加到 settings.py文件:
INSTALLED_APPS=['django_createuser',...]
命令
createuser
用于创建用户。
位置参数:
^{tt6}$ Login; required
可选参数:
-h, --help show this help message and exit --email EMAIL Email; required --first_name FIRST_NAME First name; optional --last_name LAST_NAME Last name; optional --password PASSWORD Password; optional --is-staff Staff status; optional, default is False --is-superuser Superuser status; optional, default is False -g GROUPS, --groups GROUPS List of user’s groups; optional, comma is a separator --database DATABASE Specifies the database to use; optional, default is ^{tt7}$ --version show program’s version number and exit -v LEVEL, --verbosity LEVEL 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. ^{tt8}$. If this isn’t provided, the ^{tt9}$ environment variable will be used. --pythonpath PYTHONPATH A directory to add to the Python path, e.g. ^{tt10}$. --traceback Raise on ^{tt11}$ exceptions --no-color Don’t colorize the command output. --force-color Force colorization of the command output.
许可证
版权所有©2019,Piotr Roszatycki
该软件在GNU Lesser General Public License(LGPL)下分发 3或更大)。