我的网站以前一直在工作,突然开始打破错误。
ImproperlyConfigured at / The included urlconf resume.urls doesn t have any patterns in it
恢复项目基础。 在环境中,我已经做了安排。
ROOT_URLCONF = resume.urls
这里,我恢复过来,坐在项目根名录上。
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns( ,
# Example:
# (r ^resume/ , include( resume.foo.urls )),
# Uncomment the admin/doc line below and add django.contrib.admindocs
# to INSTALLED_APPS to enable admin documentation:
(r ^admin/doc/ , include( django.contrib.admindocs.urls )),
# Uncomment the next line to enable the admin:
(r ^admin/ , include(admin.site.urls)),
(r ^accounts/login/$ , django.contrib.auth.views.login ),
#(r ^employer/ , include(students.urls)),
(r ^ajax/ , include( urls.ajax )),
(r ^student/ , include( students.urls )),
(r ^club/(?P<object_id>d+)/$ , resume.students.views.club_detail ),
(r ^company/(?P<object_id>d+)/$ , resume.students.views.company_detail ),
(r ^program/(?P<object_id>d+)/$ , resume.students.views.program_detail ),
(r ^course/(?P<object_id>d+)/$ , resume.students.views.course_detail ),
(r ^career/(?P<object_id>d+)/$ , resume.students.views.career_detail ),
(r ^site_media/(?P<path>.*)$ , django.views.static.serve , { document_root : C:/code/django/resume/media }),
)
我有一把手叫ur和档案。 页: 1 (我还创建了一个空白的init.py in the same ́s so that urls be recognized.) 这是ja。
from django.conf.urls.defaults import *
urlpatterns = patterns( ,
(r ^star/(?P<object_id>d+)$ , resume.students.ajax-calls.star ),
)
任何人都知道什么错误? 这使我.。
感谢