Re: Django + tiny_mce

2008-10-07 Thread Brian Jones
I fixed it. Once I knew that the APPEND_SLASH was kicking in *because* the url couldn't be found, I just moved the relevant line in my urlconf to be the first one in my 'urlpatterns' tuple, and from there I believe everything in the example in the book "just worked". It is unbelievably annoying th

Re: Django + tiny_mce

2008-10-07 Thread Brian K. Jones
Sorry for the mix up. The log messages I pasted in are from yet another test config, but they're the same return codes I get, and the same addslash behavior... I'll see what I can do to figure out why the url wouldn't be matching. Thanks. On Oct 7, 9:30 am, "Karen Tracey" <[EMAIL PROTECTED]> wrot

Re: Django + tiny_mce

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 9:07 AM, Brian K. Jones <[EMAIL PROTECTED]> wrote: > > This scenario has been brought up before, but I'm having a problem > that hasn't yet been reported. I was unable to reply to the whole list > in the google groups interface - only "Reply to author" was available. > Here'

Django + tiny_mce

2008-10-07 Thread Brian K. Jones
This scenario has been brought up before, but I'm having a problem that hasn't yet been reported. I was unable to reply to the whole list in the google groups interface - only "Reply to author" was available. Here's the thread for reference: http://groups.google.com/group/django-users/browse_threa

Re: Django + tiny_mce

2008-07-18 Thread theTrystero
I ran into problems with tinyMCE integration too... I ended up adding the new line to urls.py in the wrong order. D'oh. Complete file looked like this: from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^cms/', include('cms.foo.urls')), # Uncomment t

Re: Django + tiny_mce

2008-07-11 Thread ColdSun
Try changing your change_form.html to reflect the nested directories (by including "../" for each level of directory its in... or, as a simplier fix: Change: to http://127.0.0.1:8000/tiny_mce/ tiny_mce.js"> --~--~-~--~~~---~--~~ You received this message b

Re: Django + tiny_mce

2008-07-09 Thread LRP
Many many thanks to all who helped. Problem solved. There seem to have been two issues: 1) Mathias pointed out missing slash. 2) I'd copied only the top tiny_mce directory into my .../media/ jscripts/tiny_mce directory. Mario, I'll definitely look at your note again when I try out django unde

Re: Django + tiny_mce

2008-07-08 Thread Mario
Lloyd, There's more than one way to skin a cat. It does not matter if you are using development server or apache. I have been using Tiny MCE for about a year now and I am happy with the setup. For flatpages, if you have admin rights to the server, you need to edit your flatpages model located in

Re: Django + tiny_mce

2008-07-08 Thread Chatchai Neanudorn
Ok, Got you. Where is retrun code for /tiny_mce/tiny_mce.jsitself, Did you mean all js under /tiny_mce cannot be loadded by django? What is environment you are working on? 2008/7/9 Chatchai Neanudorn <[EMAIL PROTECTED]>: > http://192.168.1.4:8000/tiny

Re: Django + tiny_mce

2008-07-08 Thread Chatchai Neanudorn
http://192.168.1.4:8000/tiny_mce/tiny_mce.js vs [08/Jul/2008 19:37:23] "GET /tiny_mce/langs/en.js HTTP/1.1" 404 1771 What is "lang" at the right side? Chatchai 2008/7/9 LRP <[EMAIL PROTECTED]>: > > Hi, > > Thanks to all for responses, but puzzle persists... > > Mathias, I added the slash. Still

Re: Django + tiny_mce

2008-07-08 Thread LRP
Hi, Thanks to all for responses, but puzzle persists... Mathias, I added the slash. Still can't see the tiny_mce edit bar. But it does provide a clue: Output of runserver now looks like: [08/Jul/2008 19:37:17] "GET /admin/ HTTP/1.1" 200 4851 [08/Jul/2008 19:37:20] "GET /admin/flatpages/flatpage

Re: Django + tiny_mce

2008-07-08 Thread Mario
Easy fix. Open your models.py and in the Class Admin section of the model insert js = ['tiny_mce/tiny_mce.js', 'js/textareas.js']. For example: class Admin: list_display = ('headline', 'author', 'pub_date', 'publish') list_filter = ['pub_date'] save_as = True js =

Re: Django + tiny_mce

2008-07-08 Thread Matthias Kestenholz
2008/7/8 LRP <[EMAIL PROTECTED]>: > > > Add a slash here: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe fro

Re: Django + tiny_mce

2008-07-08 Thread LRP
Thanks Chatchai. Unfortunately, integration of tiny_mce still eludes me. It seems that django is not looking in the proper directory for tiny_mce.js. But I can't see why, despite generous off-list help from kind-soul Peter. 1) I've reviewed and documented my configuration below and would be trul

Re: Django + tiny_mce

2008-07-06 Thread Chatchai Neanudorn
Oh, Fixed me, 404 (File not found!) I was in situation like you, before. Some instruction or recipe assume you have basic understanding of django. There are a lot of django recipe assume that you put js or css under the same place of admin media. In this case, you don't need to configure media ur

Re: Django + tiny_mce

2008-07-06 Thread LRP
Many thanks for the help, Chatchai. > Can you start web server and > typehttp://localhost/usr/share/tinymce/www/tiny_mce.js > and see if it return something rather than 400. I get 404. Here's url config: urlpatterns = patterns('', # Example: # (r'^cms/', include('cms.foo.urls')),

Re: Django + tiny_mce

2008-07-06 Thread Chatchai Neanudorn
First thing when you work with Java script is, make sure it is available. In this case, where is your urls config. >From these, Can you start web server and type http://localhost/usr/share/tinymce/www/tiny_mce.js

Django + tiny_mce

2008-07-06 Thread lloyd
Hello, I'm working through James Bennett's Practical Django Projects. Have brought up the cms; would like to add Rich Text Editing, but the instructions in Bennet's book don't seem to work for me. Googling around, I find a number of recipes for adding RTE. Thought I try the approach suggested