Im following the tutorial on the Django website https://docs.djangoproject.com/en/1.9/intro/tutorial01/
我正在关注Django网站上的教程https://docs.djangoproject.com/en/1.9/intro/tutorial01/
im down to the mysite/urls.py section, i have added the code
我下到mysite / urls.py部分,我添加了代码
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^networks/', include('networks.urls')),
url(r'^admin/', admin.site.urls),
]
However when I run the server I get:
但是,当我运行服务器时,我得到:
ImportError: No module named djano.conf.urls
Ive searched through here and everything points to an old version of Django, but im running the latest version i believe
我在这里搜索过,所有内容都指向一个旧版本的Django,但我运行最新版本我相信
python -c "import django; print(django.get_version())"
1.9.5
Can anyone help me out?
谁能帮我吗?
Thanks
1 个解决方案
#1
0
I think you have a Typo error:
我认为你有一个错字错误:
ImportError: No module named **djano**.conf.urls
That's why you're getting this ImportError.
这就是你得到这个ImportError的原因。
#1
0
I think you have a Typo error:
我认为你有一个错字错误:
ImportError: No module named **djano**.conf.urls
That's why you're getting this ImportError.
这就是你得到这个ImportError的原因。