The error message suggests that there are no valid URL patterns in the WebStockPredict.urls file. This could be due to a syntax error or a missing import.

To fix the issue, make sure that the WebStockPredict.urls file contains valid URL patterns. You can also check for any circular imports that might be causing the issue.

Here is an example of a valid URL pattern in Django:

from django.urls import path from .views import MyView

urlpatterns = [ path('myurl/', MyView.as_view(), name='myview'), ]

This URL pattern maps the URL "/myurl/" to the MyView view. Make sure that your URL patterns follow a similar syntax and are properly imported in your main urls.py file.


原文地址: https://www.cveoy.top/t/topic/pYQ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录