本文介绍了Python-Django:/的ImportError:没有名为urls的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中创建了Djnago项目。不幸的是,我在运行项目时遇到问题



ImportError at / No module named urls









urls.py内容



I have created Djnago project in eclipse. Unfortunately, i am facing issue when i run the project

ImportError at / No module named urls

Here Error Page
Eclipse Project

urls.py Content

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'TestApp.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)

推荐答案



这篇关于Python-Django:/的ImportError:没有名为urls的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 09:03