User-Profile-Image
hankin
  • 5
  • centos7
  • docker
  • mysql
  • PostgreSQL
  • git/gitlab
  • ELK
  • python
    • python-Tornado
    • python-django
  • redis
  • nginx
  • kvm
  • proxmox
  • mongo
  • kubernetes
  • prometheus
  • GlusterFs
  • nfs
  • freeswitch
  • httpd
  • shell脚本
  • linux
  • fastdfs
  • nextcloud
  • openssl
  • openvpn
  • rabbitmq
  • sqlite
  • svn
  • java
  • ubuntu
  • vue2
  • wordpress
  • php
  • IOT物联网
  • 项目
  • 故障处理
  • 树莓派
  • 博客存档
  • 未分类
  • 杂项
  • #1742(无标题)
  • 新视野
  • 分类
    • 项目
    • 树莓派
    • 杂项
    • 未分类
    • 新视野
    • 故障处理
    • 博客存档
    • wordpress
    • vue2
    • ubuntu
    • svn
    • sqlite
    • shell脚本
    • redis
    • rabbitmq
    • python-django
    • python
    • proxmox
    • prometheus
    • PostgreSQL
    • php
    • openvpn
    • openssl
    • nginx
    • nfs
    • nextcloud
    • mysql
    • mongo
    • linux
    • kvm
    • kubernetes
    • java
    • IOT物联网
    • httpd
    • GlusterFs
    • git/gitlab
    • freeswitch
    • fastdfs
    • ELK
    • docker
    • centos7
  • 页面
    • #1742(无标题)
  • 友链
      请到[后台->主题设置->友情链接]中设置。
Help?

Please contact us on our email for need any support

Support
    首页   ›   python   ›   正文
python

python-django-manage.py

2022-11-08 11:46:57
544  0 0
一个让你用各种方式管理 Django 项目的命令行工具                 
参数说明
[auth]              
    changepassword              
    createsuperuser         创建访问admin应用的超级用户账号,这里需要输入用户名、邮箱和口令。 

[contenttypes]              
    remove_stale_contenttypes               

[django]                
    check            检查整个Django项目是否存在常见问题。(python manage.py check + 项目名)    
    compilemessages             
    createcachetable                
    dbshell             
    diffsettings            列出当前settings.py内容跟默认创建的settings.py有哪些改变,未出现在默认设置中的设置后跟"###"。    
    dumpdata                
    flush           默认删除default数据库,如果setting.py中配置多个数据库,可以指定:python manage.py flush --database DATABASE 
    inspectdb           已有数据库表,反向生成models :python manage.py inspectdb > polls/models.py 
    loaddata                
    makemessages                
    makemigrations          根据检测到的模型创建新的迁移  
    migrate         对数据库的更改,主要是数据表设计的更改,在数据库中真实执行   
    sendtestemail               
    shell           启动命令行环境 
    showmigrations              
    sqlflush                
    sqlmigrate              
    sqlsequencereset                
    squashmigrations                
    startapp            在这个新的app目录下创建一系列文件模版,比如models.py、views.py、admin.py等 
    startproject            新建工程    
    test                
    testserver              

[sessions]              
    clearsessions               

[staticfiles]               
    collectstatic               
    findstatic              
    runserver           启用Web服务器    
评论 (0)

点击这里取消回复。

欢迎您 游客  

Copyright © 2025 网站备案号 : 蜀ICP备2022017747号
smarty_hankin 主题. Designed by hankin
主页
页面
  • #1742(无标题)
博主
tang.show
tang.show 管理员
linux、centos、docker 、k8s、mysql等技术相关的总结文档
210 文章 2 评论 200959 浏览
测试
测试