Type ‘manage.py help subcommand’ for help on a specific subcommand appears when Python clicks RUN or DEBUG.

Hits: 0

Type ‘manage.py help ‘ for help on a specific subcommand appears when Python clicks RUN or DEBUG.

Table of contents

Problem Description

Method 1. Configure manage parameters

Method 2. Configure the execution parameters of the file in Pycharm

Problem Description

When starting [Django] , when the command line runs the manage.py file, the following parameters are: runserver 127.0.0.1:8004. When using RUN or DEBUG directly with Pycharm, the following situations occur

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
    dump data
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    sending test email
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startup app
    start project
    test
    test server

[sessions]
    clearsessions

[staticfiles]
    collectstatic
    findstatic
    runserver

Process finished with exit code 0

Solution: Configure the execution parameters of the file in Pycharm

Method 1. Configure manage parameters

1: Enter the manage file configuration

Select “manage”==>”Edit Configurations…”

2: Configuration parameters

Parameters:runserver

save and exit

3: start

Method 2. Configure the execution parameters of the file in Pycharm

This is where we need to change, instead of changing the execution parameters of the manage.py file individually

1: Select the target project “mydj”

2: Enter the configuration of the target project

3: Configuration parameters

Host and Port form the parameter “startup link”: http://10.0.0.0:8004

The runserver here is directly used globally, not just in the manage.py file (Note: The runserver parameter in manage.py has been removed here).

4: Run the entire project directly

Error: That IP address can’t be assigned to.

5: Change to the correct IP

You may also like...

Leave a Reply

Your email address will not be published.