i am also starting to use less for all of my projects and i love it.
and for the record, with less.js it's not actually necessary to compile the .less files on the backend every time you make changes, you can have the compilation done on the front end and the browser will catch the results for future requests.
> --
> You received this message because you are subscribed to the Google Groups "Django developers" group.
> To post to this group, send email to django-d...@googlegroups.com.
> To unsubscribe from this group, send email to django-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
>
On Thursday, February 2, 2012 at 3:07 PM, Idan Gazit wrote:
The next major revision of the admin will definitely use either less or sass, because it is uncivilized to work without such lovely tools nowadays.I'm less certain about bootstrap. It has some pros and cons:Pros:* widely used (and thus widely understood)* We won't need to invent our own style guide for the new admin. If you're developing a plugin or an extension and you're using the bootstrap styles, your thing willl mesh nicely with the rest of the admin.* less.js has the distinct advantage of being easier to develop for than sass for our purposes.If we go with a less.js solution (like bootstrap), we might not need to require that all edits to admin "source" stylesheets (less/scss) come with the recompiled CSS. This lowers the barrier to contribution significantly, at the cost of a bit of site performance as less gets compiled client-side. That being said, the admin isn't supposed to be used as a a high-traffic site (or shouldn't be, I can't say how people abuse it).
Cons:* less has no equivalent to compass, which is chock full of reusable stuff.* I'm already having a bit of a negative reaction to the ubiquity of the bootstrap "look" on the web. That being said, it's relatively easy to alter some styles, but then we make the job of 3rd party admin extenders harder, because they must deviate from the default bootstrap style to fit into the admin.-I
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/QxpHySYhgDgJ.
Two points:
* If we decide to change the admin site to use LESS, we should ship
compiled CSS. No need to introduce the less.js overhead.
* I have been working on a Python LESS compiler in my spare time, and
there could be a use for it in here.
Adrian
<Slightly Off Topic>
Is this up somewhere public? I've been fighting the urge to do this as
well. Using django-compressor with less on Heroku is a non-starter
since you can't install node. Having this as a Python module would be
handy.
</Slightly Off Topic>
> Adrian
>
> --
> You received this message because you are subscribed to the Google Groups "Django developers" group.
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
As far as core. Bootstrap should be a 3rd party app, but possibly having less support in core might be helpful.
Not yet, alas, but hopefully soon.
Adrian
Adrian
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To post to this group, send email to django-d...@googlegroups.com.
To unsubscribe from this group, send email to django-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
+1
Given how flexible the admin is doing somethings is still pretty
annoying. I feel like if it was a external project with its own
release schedule more progress could be made. FWIW i'm experimenting
with an admin interface that relies heavily on class based views. So
far I like it. CBVs seem to have more useful hooks then the admin
currently has. At the very least I think the new admin needs to not be
backwards compatible with the current admin.
So my vote is for django-admin2 as an external project.
I also still give my +1 to having it utilize less, but I am also cautious like others about prescribing bootstrap specifically , especially the JS since as others have pointed out is somewhat unstable right now and not very easy to use at times (took me a long time to figure out modals)
Sent from my iPhone
I agree with this sentiment. I think separating the admin into a
standalone app would be a step backward, at least at this point.
It strikes me that "the Django admin is hard for people to fork and
modify" is a symptom of something else, not a problem in itself. The
bigger problem is that our current development infrastructure
(Subversion/Trac) doesn't allow for easy forking workflow. We're going
to solve that with our move to Git/GitHub, which will make it much
easier for people to fork and much easier for core developers to
integrate contributions.
Before making any final judgment on separating the admin, we should
see how our community's move to GitHub goes. I'm suspecting the pain
points around forking will vanish at that point.
P.S. In case you haven't heard about the GitHub move, here's a blog
post you should read: http://www.holovaty.com/writing/back-to-django/
ETA is sometime soon after we launch 1.4.
Adrian
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.
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.
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.
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.
We're going
to solve that with our move to Git/GitHub, which will make it much
easier for people to fork and much easier for core developers to
integrate contributions.
I've seen a lot of good ideas for admin rejected recently because they
couldn't fit into Django's overall vision. I don't think there is any
way to resolve this rift: it will persist. Django and admin should be
developed separately, likely by separate teams. They could still live in
the same codebase, with an "subofficial" admin fork. Then, the official
django repo could pull in changes according to some suitable policy.
However, maintaining it as a separate project wouldn't hurt, either:
In address to Anssi's concerns: conteaching pip is as easy as `pip
install django-admin`, and the two projects could be tarball-ed together
somehow. (Could it be that hard to teach setup.py to install another
package from a subdir? Or to tar up them separately?) (And what is
virtualenv? Do I need it to install admin? Let's address that in a
separate tutorial, with a link and a notation.)
Peace,
Jonathan
P.S. I'm fairly new here (~1 month), and my perspective is
proportionally skewed.
On 02/03/2012 02:07 PM, Ryan D Hiebert wrote:
> I think that Django's admin app is a killer feature for two main reasons:
> 1. It is automatically installed, and integrated into the tutorial.
> 2. It is used all over in third-party apps, because they can expect it to be there.
>
> While I appreciate that there may be differences in core vs admin that may slow down development of the admin, I'm wary of removing it from the django install, thinking that it might hurt reason 2, even if it is integrated in the tuturial, and possibly even installed automatically.
>
> Although as far as the automatic install goes, I'm not sure how that would work. Would it be a dependency? That doesn't make sense.
>
> On Feb 3, 2012, at 6:21 AM, Max Thayer wrote:
>
>> The point about admin's appeal to new people is important, but externalizing it and keeping new people from ever seeing it are very different. Consider: admin isn't even enabled by default. You have to follow the tutorial on how to enable it. If admin weren't included in Django proper, we could just change the tutorial to "Apps are awesome; here's how to download and install one written by someone else." New users could meet pip sooner, and otherwise understand how to integrate with the broader python/django community's various creations.
>>
>> Actually, a friend of mine and I have been plotting out externalizing various parts of contrib, like admin and auth. Are any groups currently pursuing those goals as well?
>>
>> Best regards,
>> Max
>>
>> On Fri, Feb 3, 2012 at 8:35 AM, Brendan Smith <bre...@nationalpriorities.org> wrote:
>> I give +1 to the idea of separating out the admin and letting people fork and modify to their hearts content
>>
>> I also still give my +1 to having it utilize less, but I am also cautious like others about prescribing bootstrap specifically , especially the JS since as others have pointed out is somewhat unstable right now and not very easy to use at times (took me a long time to figure out modals)
>>
>> Sent from my iPhone
>>
>> On Feb 3, 2012, at 1:25 AM, Harris Lapiroff <harrisl...@gmail.com> wrote:
>>
>>> The Django admin is a major�if not *the* major�selling point to
>>> The Django admin is a major—if not *the* major—selling point to
+1 to separate django and admin o other contrib app.
-0 to mantain another/alternative admin on contrib
It is understandable�at first that�was maintained�at par for�order and security�in the�project itself.
But today, after�Django�1.3.1�I think�it's time�to review�the situation of�contrib.
With�teams in�each�Django�contrib�application�would be a little�more�flexible.
That is my�humble opinion�:)Regards,
>>> The Django admin is a major�if not *the* major�selling point to
>>>>> Perhaps this is too far in the future looking. �But at a certain point the
>>>>> admin must become a separate project. �One of the major goals of
>>>>> newforms-admin ('lo those years ago) was to demote the admin from special
>>>>> status, with hooks inside core left and right, to "just an app". �Let's
>>>>> carry that to the logical conclusion: just an app *outside of Django*.
>>>>
>>>>> That gives the maintainers the freedom to reinvent it, and use tools like
>>>>> less or bootstrap without it needing to be an issue of policy for all of
>>>>> Django. �Because when I first read saw this thread my thought was, "Hmm,
>>>>> what unholy mess of requirements am I going to need if I want to just run
>>>>> the test suite. �Will I still be able to write new features in forms without
>>>>> needing to learn what the hell less or compass is?". �Several years ago, I
>>>>> opposed using jQuery in the admin, on the principle that Django should be
>>>>> completely free of entangling alliances. �I made that argument more or less
>>>>> out of habit, just because I felt it was an argument that ought to be made,
>>>>> but really I was pretty happy to get to use jQuery. �Now I'm saying, it's
>>>>> pretty clear that admin 2.0 (or 3.0, or 4.0, anyone counting?) is going to
>>>>> be a beast that far outstrips almost anything else in Djanog (besides the
>>>>> ORM ;)) in complexity, with more dependencies, more associated tooling, and
>>>>> more usecases (i.e. it's not just a tool for developers to use, it's also
>>>>> something for end users of *our* users' apps to use). �Keeping that in
--
juanpex
--
You received this message because you are subscribed to the Google Groups "Django developers" group.