I've deployed my Django app to Google App Engine. It uses grappelli in the admin app for extra awesomeness and although it seems to run ok there's one huge stumbling block which I cannot seem to get rid of. The issue is mentioned here and manifests itself on list views in the admin app. It's impossible to select models from a list and perform any of the predefined actions on them.
On all list views in the admin app I get a Javascript error:
Uncaught TypeError: Object [object Object] has no method 'actions'
which finds it origin in the following snippet of Javascript code:
<script type="text/javascript" charset="utf-8">
(function($) {
$(document).ready(function() {
$("tr input.action-select").actions();
});
})(grp.jQuery);
</script>
Things I've done:
- I deployed grappelli by adding the package to my Django app.
- I've added
STATIC_ROOT
and STATIC_URL entries in mysettings.py
. - I ran
manage.py collecstatic
to collect static files before deployment. All static files are now in the static directory in the app root as referenced insettings.py
. - I've checked the generated page source and it appears that all required Javascript libraries are properly included from their respective static directories. I double checked this by comparing the generated page source with a local running version (which doesn't have this problem) and they are identical.
- I cleared the browser cache.
The problem is most likely caused by my configuration -as the app works flawless on my local machine- but I cannot find anything wrong. Any ideas on how to tackle this?
EDIT: just to be complete, I use Django 1.4
and the grappelli 2.4
running on Google Cloud SQL