i agree - tiny_mce is SUPER easy to implement. also - check out your line:
js = 'media/js/admin/AddRichTextEditing.js' view the source on your admin page and look at the src attribute of the <script> tag. sometimes you have to do something like this: js = '../../js/admin/AddRichTextEditing.js' On Mar 2, 8:21 am, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > Hi to all. > I'm trying to add a rich text editor to a field of my model, following > the tutorial onhttp://code.djangoproject.com/wiki/AddDojoEditor > > I have this directory structure: > > ./ > ./gallery > ./gallery/locale > ./gallery/locale/it > ./gallery/models.py > ./gallery/views.py > ./locale > ./locale/it > ./manage.py > ./media > ./media/dojo (with all the contents of dojo-0.4.1-kitchen_sink.tar.gz ) > ./media/dojo/dojo.js > ./media/js > ./media/js/admin > ./media/js/admin/AddRichTextEditing.js > ./settings.py > ./urls.py > > into > i have a class with > > description = models.TextField(_("description"),help_text='Rich Text > Editing.', blank=True, null=True) > and > class Admin: > js = ['media/js/admin/AddRichTextEditing.js'] > pass > > The problem is that it doesn't replace the "Rich Text Editing." with the > editor. > > maybe my mistake is on media settings or directory structure? > Must I have something in urls? > > in my settings.py I have: > > # Absolute path to the directory that holds media. > # Example: "/home/media/media.lawrence.com/" > MEDIA_ROOT = > '/home/aronchi/documenti/sviluppo/workspace/Brunori/museobrunori/media/' > > # URL that handles the media served from MEDIA_ROOT. > # Example: "http://media.lawrence.com" > MEDIA_URL = 'http://localhost:8000/media' > > # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use > a # trailing slash. > # Examples: "http://foo.com/media/", "/media/". > ADMIN_MEDIA_PREFIX = '/media/' > > Is there some other better editor? > > Thanks in advance. > > -- > Alessandro Ronchi > Skype: aronchi - Wengo: aleronchihttp://www.alessandroronchi.net- Il mio sito > personalehttp://www.soasi.com- Sviluppo Software e Sistemi Open Source --~--~---------~--~----~------------~-------~--~----~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---