I'd like to integrate the optgroup tag
(http://www.w3schools.com/tags/tag_optgroup.asp) into the FilePathField
(which would in code would lead to this being tacked onto the
SelectField object) and want to get people's thoughts before writing
the code.
My thought would be that:
NAME_CHOICES = (
Could the comment tag be simplified to something like {! !} or {# #}.
The current convention is a bit bulky for my taste.
{% comment %}
{% if 1 %}{% endif %}
{% endcomment %}
could be simplified to...
{! {% if 1 %}{% endif %} !}
or
{% comment %} Short comment about following code {% endcomme
For those that seem to like the idea of shorter comments, I whipped up
this piece of middleware for your projects. It's my first attempt at
middleware so the code might seem a bit immature for you advanced
djangoers out there. I opted to use the {# #} syntax, but that can
easily be changed in th
Try changing your js variable to
js = ('js/tiny_mce/tiny_mce.js','js/tiny_mce/textareas.js'),
For some reason on my installation, the /media/ is automagically added.
simplejson rocks. no objections here.
I just started using TinyMCE inside django's admin interface on one
site I'm working on. Simon is right... it's a bit sloppy and, from my
experience, really falters when pasting text. I've even had pages not
saving correctly after pasting text from another application. As long
as I stick with e
+1 for {# #} comment tag. I've written some middleware to allow me to
use the {# #} syntax and it has made templating much smoother.
The {# #} middleware and other arguments on this subject can be found
here:
http://groups.google.com/group/django-developers/browse_frm/thread/d4e30079153011e1/55d