Re: Rich Text Fields in Admin
See that: http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
Hi, What perrygeo and schotm has suggested works perfectly. I am happy to resolve it. I shall try adding a line or two to the wiki post on the topic, with couple of variants from my side. Thanks a lot guys! You all are great Ramdas On 10/12/06, Ramdas S <[EMAIL PROTECTED]> wrote: What perrygeo has suggested worked like a charm on my PC. Unfortunately DreamHost where our web site is hosted does not let you install Genshi. I am writing to them. Or I need to figure someway to put it in the pythonpath, Any suggestions. On 10/12/06, [EMAIL PROTECTED] < [EMAIL PROTECTED] > wrote: Ramdas S wrote:> Hi,>>> I have beenn trying to get the django admin to do Rich Text Field for > textarea. I checked the following examples, and tried the variants seen in> these linksTry : http://code.djangoproject.com/wiki/RichTextField This worked for me with a few minor variations:1) Had to install Genshi first2) Instead offrom local_models import RichTextFieldWithClass js=['../js/tinymce/jscripts/tiny_mce/tiny_mce.js', '../js/tmce.js']I usedfrom mysite.local_models import RichTextFieldWithClassjs=['js/tinymce/jscripts/tiny_mce/tiny_mce.js', 'js/tmce.js'] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
Hi Randas, I've been using the tutorial on: http://www.socialistsoftware.com/post/django-and-tinymce/ The tutorial is a bit outdated so look at the following things: Make sure you copy the tiny_mce folder into /usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/admin/media/js/ (your python install might not be in /usr/local/lib/ so make sure you change that to wherever yours is installed) make sure you copy textarea.js into the tiny_mce folder make sure that in the admin class of your Model it states js = ['js/tiny_mce/tiny_mce.js', 'js/tiny_mce/textareas.js'] and not something like js = ('/media/js/tiny_mce/tiny_mce.js', '/media/js/tiny_mce/textareas.js') Hope this is of help Martijn --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
On Thu, 2006-10-12 at 10:39 +0530, Ramdas S wrote: > Malcom, > > The display is fine. The web site is working perfectly. I am able to > populate the database. > > But I am not able to get the rich text box in any of the text areas in > the particular model or for the table in question. > > I have tried options such as installing it at multiple places, > including the svn downloaded file path as well as > usr/lib/python/./admin > /media. I have tried it with complete path of the options to be used > in js fields in the admin. Nothing seems to be working! There are two possibilities here: either the webserver correctly retrieves the necessary Javascript files or it doesn't. If you are moving the files around it sounds like you are saying your webserver is not able to locate the files in order to serve them. That is a webserver configuration problem. People will be able to help you more if you can explain which webserver you are using and what configuration you have for serving static files. If your webserver is correctly retrieving the Javascript files (look for a 200 status code for each of the files), then you have a problem with how you are integrating the Javascript into your pages. Those two cases have different causes and differentiating between them will help people help you to debug it. Regards, Malcolm > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
Malcom,The display is fine. The web site is working perfectly. I am able to populate the database.But I am not able to get the rich text box in any of the text areas in the particular model or for the table in question. I have tried options such as installing it at multiple places, including the svn downloaded file path as well as usr/lib/python/./admin/media. I have tried it with complete path of the options to be used in js fields in the admin. Nothing seems to be working! RamdasOn 10/12/06, Ramdas S <[EMAIL PROTECTED]> wrote: Malcom,The display is fine. The web site is working perfectly. I am able to populate the database. But I am not able to get the rich text box in any of the text areas in the particular model or for the table in question. I have tried options such as installing it at multiple places, including the svn downloaded file path as well as usr/lib/python/./admin/media. I have tried it with complete path of the options to be used in js fields in the admin. Nothing seems to be working! RamdasOn 10/12/06, Malcolm Tredinnick < [EMAIL PROTECTED]> wrote: On Wed, 2006-10-11 at 23:13 +0530, Ramdas S wrote:> Hi,>>> I have beenn trying to get the django admin to do Rich Text Field for> textarea. I checked the following examples, and tried the variants > seen in these links>> http://code.djangoproject.com/wiki/AddWYSIWYGEditor >> http://code.djangoproject.com/wiki/AddDojoEditor>> http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html >> I am using the instructions to the 'T'. I tried all options. But> nothing seems to be working. What am I doing wrong?I'm not in any position to help you no this, but it's not useful to those who might be able to help you to just say "nothing seems to beworking". That tells them nothing about the problems you are having.Do you mean(a) All requests to the web server are served correctly and my web browser indicates no errors (particularly useful if you can use FireBugor something similar), but nothing appears on the web page?(b) Some files are not being retrieved correctly?(c) The display looks correct, but I can't actually use the rich text editing?(d) Something else?People the mailing list cannot read your mind or see your computerscreen. So you are going to have to describe the problem you are seeingand do some digging around to collect the information. Thanks,Malcolm --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
On Wed, 2006-10-11 at 23:13 +0530, Ramdas S wrote: > Hi, > > > I have beenn trying to get the django admin to do Rich Text Field for > textarea. I checked the following examples, and tried the variants > seen in these links > > http://code.djangoproject.com/wiki/AddWYSIWYGEditor > > http://code.djangoproject.com/wiki/AddDojoEditor > > http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html > > I am using the instructions to the 'T'. I tried all options. But > nothing seems to be working. What am I doing wrong? I'm not in any position to help you no this, but it's not useful to those who might be able to help you to just say "nothing seems to be working". That tells them nothing about the problems you are having. Do you mean (a) All requests to the web server are served correctly and my web browser indicates no errors (particularly useful if you can use FireBug or something similar), but nothing appears on the web page? (b) Some files are not being retrieved correctly? (c) The display looks correct, but I can't actually use the rich text editing? (d) Something else? People the mailing list cannot read your mind or see your computer screen. So you are going to have to describe the problem you are seeing and do some digging around to collect the information. Thanks, Malcolm --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Rich Text Fields in Admin
Ramdas S wrote: > Hi, > > > I have beenn trying to get the django admin to do Rich Text Field for > textarea. I checked the following examples, and tried the variants seen in > these links Try : http://code.djangoproject.com/wiki/RichTextField This worked for me with a few minor variations: 1) Had to install Genshi first 2) Instead of from local_models import RichTextFieldWithClass js=['../js/tinymce/jscripts/tiny_mce/tiny_mce.js', '../js/tmce.js'] I used from mysite.local_models import RichTextFieldWithClass js=['js/tinymce/jscripts/tiny_mce/tiny_mce.js', 'js/tmce.js'] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---