django 例子错误

django版本是1.2.4

 

1.Site administration You don't have permission to edit anything.

将admin.autodiscover() enable,使其可用。

 

2.Exception Value:  unexpected indent (urls.py, line 4)

原因是tab或者空格,

from django.contrib import admin admin.autodiscover() 

改成

from django.contrib import admin admin.autodiscover() 

你可能感兴趣的:(Python,django,import)