gerapy配置使用
1.在主机直接安装
pip3 install -U gerapy
cd gerapy
gerapy migrate
2.创建用户
gerapy createsuperuser
root@fc991c742234:/app/gerapy
Username (leave blank to use 'root'): tieyongjie
Email address:
Password:
Password (again):
Superuser created successfully.
2.docker安装
1.docker pull germey/gerapy
将镜像拉取下来之后,通过以下命令启动
docker run -d --name gerapy -v ~/gerapy:/app/gerapy -p 8081:8000 germey/gerapy
2.初始化gerapy
gerapy init
cd gerapy
gerapy migrate
3.创建用户
gerapy createsuperuser
root@fc991c742234:/app/gerapy
Username (leave blank to use 'root'): tieyongjie
Email address:
Password:
Password (again):
Superuser created successfully.
注:邮箱可以不输入
账号:tieyongjie
pass:
4.查看用户
sqlite
sqlite> .tables
auth_group core_monitor
auth_group_permissions core_project
auth_permission core_task
auth_user django_admin_log
auth_user_groups django_apscheduler_djangojob
auth_user_user_permissions django_apscheduler_djangojobexecution
authtoken_token django_content_type
core_client django_migrations
core_deploy django_session
select * from tablename;
.exit 退出
|