On Sat, Feb 4, 2012 at 11:23 AM, Ric <riccardodivirgi...@gmail.com> wrote:
> no no, my point is not to remove admin, you misunderstood me... > > what i'm talking about is the extend the current admin version, with a > theme framework. > > the theme framework got a default theme, that is the current admin > theme, but then developers can add their own theme. > > now making a theme for django is an hack, and not an hook, because > some javascript are hard coded inside django admin. > So there is a need for code cleanup. I haven't checked if it's possible yet (no need so far), but I think such split of JS and Python code is possible. > i'm thinking about jquery, django use 1.4, i need 1.7 for my > javascript, and i've done a terrbile hack to remove js from admin. > The solution is to upgrade jQuery in Django admin. More effort is to be taken to include the newest jQuery with each Django release. It looks, it is simpler then themes. I'm using completely different jQuery version in my sites then what is included in Django admin and I have no problem with this. I don't need to touch anything in Django admin UI (like about 90% of regular django users). > > what i'm talking about is creating a single place in django to > register stylesheet and javascripts, and then inject them in every > context with an optional context processor. > Currently there is django-sekizai used e.g. by django-cms project. Introduction of another media handling framework would complicate things. To be honest I hate using this framework because it makes a lot of mess in my templates. After all I have my CSS and JavaScript placed in static files served from different web server. Using jQuery it is easy to hook to HTML to fire some js function etc. and it should be equally easy to do it with Django admin. > > using a request.media attr, would allow admin to add on the fly style > and js for horizontal filters and fancy widget. > > then for developers would be more simple to create and mantain a > separete bootstrap theme. > --- Mateusz Marzantowicz -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.