-
下载代码
-
解包安装 python setup.py install
-
配置settings.py a. INSTALLED_APPS = ( 'grappelli', 'django.contrib.admin', ) b. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', ) AppDirectoriesFinder 必须在第一个
-
配置url urlpatterns = patterns('', (r'^grappelli/', include('grappelli.urls')), )
-
执行 python manage.py collectstatic
-
启动服务 python manage.py runserver <IP-address>:PORT