Runserver python django错误

时间:2018-02-04 10:54:37

标签: python django-models server django-views

我正在尝试使用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)

我也尝试在端口8000上runserver,同样的错误。

为什么我收到此错误?

1 个答案:

答案 0 :(得分:0)

交叉检查您的主要urls.py文件。可能会得到解决方案。

相关问题