ImportError: No module named urls
来源:5-2 xadmin的安装
我要找工作
2020-04-20
“C:\Program Files (x86)\JetBrains\PyCharm\bin\runnerw.exe” C:\Users\Administrator\Envs\mxonline\Scripts\python.exe C:/Users/Administrator/PycharmProjects/MxOnline/manage.py runserver 8000
Unhandled exception in thread started by <function wrapper at 0x0000000003A66048>
Traceback (most recent call last):
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\utils\autoreload.py”, line 226, in wrapper
fn(args, **kwargs)
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\core\management\commands\runserver.py”, line 109, in inner_run
autoreload.raise_last_exception()
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\utils\autoreload.py”, line 249, in raise_last_exception
six.reraise(exception)
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\utils\autoreload.py”, line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django_init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\apps\registry.py”, line 115, in populate
app_config.ready()
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\xadmin\apps.py”, line 14, in ready
self.module.autodiscover()
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\xadmin_init_.py”, line 27, in autodiscover
from xadmin.views import register_builtin_views
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\xadmin\views_init_.py”, line 5, in
from edit import CreateAdminView, UpdateAdminView, ModelFormAdminView
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\xadmin\views\edit.py”, line 16, in
from xadmin.layout import FormHelper, Layout, Fieldset, TabHolder, Container, Column, Col, Field
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\xadmin\layout.py”, line 1, in
from crispy_forms.helper import FormHelper
File “C:\Users\Administrator\Envs\mxonline\lib\site-packages\crispy_forms\helper.py”, line 3, in
from django.urls import NoReverseMatch, reverse
ImportError: No module named urls
老师我实在是调不出这个问题,我用的是py2.7 django 1.9版本,不知道问题出现在哪里?
3回答
-
bobby
2020-04-21
你把异常栈截图我看看 别着急 这些都是小问题 你把错误栈截图完整一些
112020-04-21 -
bobby
2020-04-22
用这些版本 不要使用大于版本 可能会安装最新的版本
00 -
我要找工作
提问者
2020-04-21
在配置 xadmin当中 出现的错误
bobby老师 这个是我错误代码的截图,您帮我看一下呗。
012020-04-22
相似问题