美文网首页
Django学习

Django学习

作者: 请叫我柯南君 | 来源:发表于2019-02-21 10:25 被阅读0次

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

    test

    testserver

[sessions]

    clearsessions

[staticfiles]

    collectstatic

    findstatic

    runserver

Process finished with exit code 0

出现这种错误,估计是在Pycharm中,直接运行manage.py文件(相当于 python3 manage.py),就会导致这样的错误,manage.py不知道去执行哪个模块!所以,我们要指定它的运行方式 (python3 manage.py runserver)

相关文章

网友评论

      本文标题:Django学习

      本文链接:https://www.haomeiwen.com/subject/tlalyqtx.html