我已經安裝grappelli通過pip安裝(並隨後更新它,肯定)。django:grappelli:路由失敗
我把它django.contrib.admin前INSTALLED_APPS:
INSTALLED_APPS = ( ... 'grappelli', 'django.contrib.admin',
我的urls.py看起來是這樣的:
url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/', include(admin.site.urls)),
不過我得到一個錯誤:
Using the URLconf defined in _myWebsite.urls, Django tried these URL patterns, in this order: ^grappelli/ ^lookup/related/$ [name='grp_related_lookup'] ^grappelli/ ^lookup/m2m/$ [name='grp_m2m_lookup'] ^grappelli/ ^lookup/autocomplete/$ [name='grp_autocomplete_lookup'] ^admin/ ^categories/$ The current URL, grappelli/, didn't match any of these.
我做錯了什麼?
你運行過syncdb命令嗎? – yedpodtrzitko 2012-02-29 16:26:21
不,我正在使用南...告訴我有沒有遷移... – 2012-02-29 16:41:20
但grappeli應用程序不使用遷移 - 你必須運行syncdb。甚至在安裝過程中提到:/ – yedpodtrzitko 2012-03-01 07:05:51