Hi,

I am reading the book of <Practical Django Projects - second edition>.
I want to merge a simple rich-text editor to flatpage following the chapter
3.

In the url.py ,I have added the link to the urlpatterns. like this:

urlpatterns = patterns('',
    (r'^admin/',inlcude(admin.site.urls)),

(r'^tiny_mce/(?P<path>.*)$','django.views.static.serve',{'document_root':'
c:\django_workspace\cms\js\tiny_mce\\'}),
    )

// the tiny_mce.js is under the path c:\django_workspace\cms\js\tiny_mce\

and then add the js script in the
templates\admin\flatpage\flatpages\change_form.html
under the {{media}} :

<script type = 'text/javascript' src='/tiny_mce/tiny_mce.js'></script>
<script type = 'text/javascript'>
tinyMCE.init(
{mode:"textaresa",
theme:"simple"
}
);
</script>


and then run the server . but no useful.

who can tell me how to fix this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to