I m following a tutorial on deploying a machine learning model via django framework. Here s the link to the tutorial Link1 I followed all the steps correctly up to step 3. First, I wrote all the code myself. Seeing that my application wasn t working, I copied and pasted all the Django code from the site. Here s the link to my project on gitHub Link2
I m using python 3.6
and django==2.2.4
当我管理<代码>python时。 我在终端站收到这一错误信息:
(venv) C:UsersSEYDOU GOROmy_ml_service2ackendserver>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangourls
esolvers.py", line 604, in url_patterns
iter(patterns)
TypeError: module object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:UsersSEYDOU GOROAppDataLocalProgramsPythonPython36lib hreading.py", line 916, in _bootstrap_inner
self.run()
File "C:UsersSEYDOU GOROAppDataLocalProgramsPythonPython36lib hreading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangoutilsautoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangocoremanagementcommands
unserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangocoremanagementase.py", line 423, in check
databases=databases,
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangocorechecks
egistry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangocorechecksurls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangocorechecksurls.py", line 23, in check_resolver
return check_method()
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangourls
esolvers.py", line 416, in check
for pattern in self.url_patterns:
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangoutilsfunctional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:UsersSEYDOU GOROmy_ml_service2venvlibsite-packagesdjangourls
esolvers.py", line 611, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf server.urls does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
我不知道什么进展,但我需要帮助了解什么进展。