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 ;

你可能感兴趣的:(Module,File,REST,import,each)