Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-cms + grappelli


If anyone knows how to make django-cms play with grappelli, please give some tips

like image 719
iperelivskiy Avatar asked Apr 09 '11 12:04

iperelivskiy


People also ask

What is Django Grappelli?

Grappelli is a grid-based alternative/extension to the Django administration interface.

Is Django admin a CMS?

Django admin, on it's own, is not a full-fledged Content Management System.

Does Django admin use bootstrap?

This Django Template is crafted on top of Bootstrap 5 using the latest version without a jQuery dependency by Themesberg. For newcomers, Django is a leading web framework coded and actively supported by experienced developers that provides a default admin interface.

What is Django admin interface?

Django provides a default admin interface which can be used to perform create, read, update and delete operations on the model directly. It reads set of data that explain and gives information about data from the model, to provide an instant interface where the user can adjust contents of the application .


1 Answers

Well I've just gone through a fairly epic adventure, the story of which might be of some use to you. The end point of said adventure was getting django-cms 2.1.3 working with django-filebrowser-no-grappelli . Whilst that may sound in fact like the opposite of what you want, I ended up there because what I really wanted was to get django-cms working with filebrowser. Without grappelli though the standard django-filebrowser does not work as expected. But with grappelli django-cms does not work as expected. So therein lay the rub, to quote shakespeare. Getting django-cms working with filebrowser was relatively straight forward except for the fact that when trying to upload files with uploadify (which is shipped with filebrowser), after selecting the files in the file dialog, nothing happened. Eventually I figured out that this was because the jquery library was being loaded twice: once by filebrowser for use with uploadify, and once by django-cms. So by commenting out the second line in this file:

your site packages dir/cms/templates/cms/toolbar/toolbar.html

which loads jquery.min.js, uploadify worked as expected. Soooo...if you just want to get django-cms working with grappelli so you can use filebrowser, the above might be helpful. Here is my settings file for reference.

like image 162
eedeep Avatar answered Sep 30 '22 17:09

eedeep