Django管理命令,用于程序化创建可用的超级用户
项目描述
django-createsuperuserwithpassword
… 提供了在开发过程中创建可用于登录的超级用户的Django管理命令。
使用方法
1. 安装
本地或全局安装pip包
pip install [--user] django-createsuperuserwithpassword
2. 激活
通过扩展Django项目设置启用Django管理命令
INSTALLED_APPS += ("django_createsuperuserwithpassword", )
3. 应用
调用命令 - 例如,在容器入口脚本中 - 如此
python manage.py createsuperuserwithpassword \
--username admin \
--password admin \
--email admin@example.org \
--preserve
开发
如果您想帮助修复错误,启动开发环境的一种简单方法是
git clone https://github.com/hartwork/django-createsuperuserwithpassword
cd django-createsuperuserwithpassword
docker-compose up --build
项目详情
关闭
django-createsuperuserwithpassword-2.0.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 337482e587b87967817f087f922d567cee6d59bd961328b2d8749960a4dcf1d9 |
|
MD5 | a19be16f51eb25357ac5b865e2933eb8 |
|
BLAKE2b-256 | 9aa3a40cf9cb1384497c28dcaf20b473436981a3622cff9287b3de7cb8c449a3 |