为django创建用户

django-createuser的Python项目详细描述


https://img.shields.io/pypi/v/django-createuser.svghttps://travis-ci.org/dex4er/django-createuser.svg?branch=masterhttps://readthedocs.org/projects/django-createuser/badge/?version=latesthttps://img.shields.io/pypi/pyversions/django-createuser.svghttps://img.shields.io/pypi/djversions/django-createuser.svg

django createuser

django-createuser是一个允许为django创建用户的包 使用./manage.py命令的应用程序。

安装

使用pippipenv安装:

pipinstalldjango-createuser

django_createuser添加到 settings.py文件:

INSTALLED_APPS=['django_createuser',...]

命令

createuser

用于创建用户。

位置参数:

^{tt6}$Login; required

可选参数:

-h, --helpshow this help message and exit
--email EMAILEmail; required
--first_name FIRST_NAME
First name; optional
--last_name LAST_NAME
Last name; optional
--password PASSWORD
Password; optional
--is-staffStaff status; optional, default is False
--is-superuserSuperuser 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}$
--versionshow 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}$.
--tracebackRaise on ^{tt11}$ exceptions
--no-colorDon’t colorize the command output.
--force-colorForce colorization of the command output.

许可证

版权所有©2019,Piotr Roszatycki

该软件在GNU Lesser General Public License(LGPL)下分发 3或更大)。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
传递Java处理类类型参数的方式的参数   java安卓中间层admob在logcat中导致大量GC_FOR_ALLOC释放消息   java Vert。x Http请求未将参数分配为配置   java中多线程的输出不正确   如何减少java本地线程的冗余   java不完全分块结果   使用OpenCv时java中的Mat数据类型不受支持错误   Java中的正则表达式不工作,而同一正则表达式在shell中工作   java如何从数组中删除元素?   JDBCJava。sql。SQLException:[Microsoft][ODBC Microsoft Access驱动程序]操作必须使用可更新的查询   java如何以对角线打印字符串变量的字符?   SonarQube 5.2的java自定义插件生成NoClassDefFoundError   macos使用Java应用程序打开浏览器选项卡