I have installed django-admin-tools and created a dashboard.py in my project folder.
Inside this file I have specified a media class:
#myproject/dashboard.py
class Media:
css = ('',)
js = ('http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/
jquery.min.js',)
In my settings I have:
#settings.py
# admin_tools
ADMIN_TOOLS_INDEX_DASHBOARD =
'myproject.dashboard.CustomIndexDashboard'
ADMIN_TOOLS_APP_INDEX_DASHBOARD =
'myproject.dashboard.CustomAppIndexDashboard'
And my URLs are configured as follows:
#urls.py
...
urlpatterns+= patterns('',
url(r'^admin_tools/', include('admin_tools.urls')),
url(r'^admin/', admin.site.urls),
url(r'', include('feincms.urls')),
)
Anyone see any glaring mistakes? I don't see the jquery file being downloaded in firebug. I assume jquery is also part of admin_tools, but this error message seems to indicate it is not?
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a
function
Any help is appreciated.