No module named urls

1, urls.py가 업데이트되었습니다.
New (1.0) urls.py :
from
 django.conf.urls.defaults
 import
 *


# The next two lines enable the admin and load each admin.py file:
from django.contrib import admin
admin . autodiscover ()

urlpatterns = patterns ( '' ,
( r'^admin/(.*)' , admin . site . root ),

# ... the rest of your URLs here ...
)
2, add ""django.contrib.admin"," to INSTALLED_APPS ;

좋은 웹페이지 즐겨찾기