Re: Django admin rich text editor

2011-08-22 Thread EricSI
Sorry about that.

-- 
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/-/6qZ-nxz2sVgJ.
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.



Django admin rich text editor

2011-08-22 Thread EricSI
Hello all,

First a little background on what is installed:
django
django-cms
django-filer
cmsplugins-filer

I'm working on a project where the admin panel for a 'Product' needs to have 
a rich text editor for several textfields. I have found several examples of 
how to incorporate this but none have been successful so far.  I'm currently 
attempting to use this 
method 
since 
it uses WYMEditor which already comes with django-cms, without success. 
 Specifying the js property in class Meta does not seem to do anything. 
 When I view source on the rendered page, the js files specified are not 
included in the page.  I also added an alert call to editor.js that is not 
being triggered.

A secondary problem that I need to figure out is how to hook up django-filer 
to the rich text field so that the user can insert images from the media 
library, but that has to wait until this problem is solved.  Although if 
anyone has any suggestions on where to look for a solution, I'd love to hear 
it.

Here is how my current code looks.

admin.py:
static = settings.STATIC_URL

class ProductAdmin(admin.ModelAdmin):
inlines = (CategoryAssociationInline, ProductImageAssociationInline, 
ProductIconAssociationInline, RetailerAssociationInline, ProductTabInline, 
ReviewsInline)

class Meta:
js = (static + 'js/jquery/jquery.js', static + 
'js/wymeditor/jquery.wymeditor.js', static + 'js/editor.js')

Editor.js:
// File Name: editor.js
 
$(document).ready(function() {
alert("document ready");
$("#content").wymeditor({ // assuming content is field name with 
TextField.
updateSelector: "input:submit",
updateEvent:"click"
});
});


Any help is much appreciated.  This is my first Django project so I may be 
missing some things that are obvious to others.  If you need any other info 
I'd be happy to provide it.

-- 
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/-/IhpeHHe16DQJ.
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.



Re: Django admin rich text editor

2011-08-22 Thread Karen Tracey
Please ask questions about using Django on django-users. The topic of this
list is the development of Django itself.

Karen

-- 
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.



Re: Advice on #13260 - '%' in args to urlresolvers.reverse()

2011-08-22 Thread Aaron Sokoloski
Hmm, that's a tricky issue.  If it is set in stone that url parameters are
not unquoted automatically before they hit the view function, that implies
that reverse should not quote automatically.

But maybe they should both be changed.  My opinion is that whatever we do,
we should do the same on both ends.  I can't think of a good reason not to
make reverse() quote automatically, and then unquote the parts before they
get to the view, but I suspect that that is likely to be due to a lack of
imagination on my part.

I apologise -- I did not break the tie with my opinion.

Cheers,
Aaron

-- 
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.



Re: Advice on #13260 - '%' in args to urlresolvers.reverse()

2011-08-22 Thread Ben Sturmfels

Hi Folks,

Could I get a tie-breaking opinion on whether this "quoting of 
parameters to reverse()" ticket #13260 is expected behaviour or not?


http://www.mail-archive.com/django-developers@googlegroups.com/msg25678.html

The original message got two responses; one saying quote automatically, 
the other saying it's up to the user.


Cheers,
Ben

--
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.