运行服务器python djang

2024-10-05 13:15:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用runserver运行django应用程序,但出现了一个错误。你知道吗

python manage.py runserver 8009

以下是输出:

Performing system checks...

    System check identified no issues (0 silenced).
February 04, 2018 - 02:48:59
Django version 2.0.2, using settings 'hesab.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x03E9F348>
Traceback (most recent call last):
  File "C:\Users\sarvit\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\module_loading.py", line 13, in import_string
    module_path, class_name = dotted_path.rsplit('.', 1)
ValueError: not enough values to unpack (expected 2, got 1)

我也尝试过runserver在端口8000上运行,但出现了相同的错误。你知道吗

为什么我会犯这个错误?你知道吗


Tags: pathdjangoinpy应用程序settingsmanageserver

热门问题