Python点击RUN或者DEBUG的时候出现Type ‘manage.py help <subcommand>‘ for help on a specific subcommand.

在PyCharm中运行Django项目时遇到'Type 'manage.py help ' for help on a specific subcommand.'的问题。解决方法包括配置manage.py参数或在PyCharm设置中调整执行参数,如设置runserver和指定IP地址。
摘要由CSDN通过智能技术生成

Python点击RUN或者DEBUG的时候出现Type 'manage.py help <subcommand>' for help on a specific subcommand.


目录

问题描述

方法一、配置manage参数

方法二、在Pycharm中配置好文件的执行参数


 

问题描述

在启动Django,命令行运行manage.py文件时,后面接的参数:runserver 127.0.0.1:8004。而直接用Pycharm使用RUN或者DEBUG时,出现以下情况

Type 'manage.py help <subcommand>' for help on a specific subcommand.

Available subcommands:

[auth]
    changepassword
    createsuperuser

[contenttypes]
    remove_stale_contenttypes

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    sendtestemail
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
 
  • 8
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值