Problem with TinyMCE editor and django 1.4.3

21 views
Skip to first unread message

Martin Chiteri

unread,
May 22, 2013, 3:57:05 AM5/22/13
to Skunkworks Mailing List, Nairobi Python Programmers
Hello, 

I have a small problem with regards to django version 1 release 4 update number 3. My Python release is 2.7.3 and I am in the process of integrating TinyMCE, a WYSIWYG editor into my admin interface in order to modify database table fields that support text areas with rich-text capabilities (font-styling, image alignment, hyper linking, etc). 

So far I have seen this guide on the django documentation site https://code.djangoproject.com/wiki/AddWYSIWYGEditor It does not make my code fail because of errors. Neither does it work as expected if at all. Stack Overflow has yielded no fruitful results. If anything the results are plagued with chaos and / or conflicting methods. I know there are at least four or more people here familiar with the framework. Any help will be highly appreciated. 

Thank you.   

Martin.

Martin Chiteri

unread,
May 22, 2013, 4:24:26 AM5/22/13
to Skunkworks Mailing List, Nairobi Python Programmers
Thank you very much Adam. I had actually already tried installing django-tinymce using pip as per another source of advice https://pypi.python.org/pypi/django-tinymce  Interestingly I have done something similar using older versions of django (v1.3), perhaps in a more manual fashion but it worked since the instructions were coming from Django's release manager. He has a fantastic but outdated book on the framework. 

Will alert you if I succeed.

CHEERS!

Martin.


On Wed, May 22, 2013 at 11:12 AM, Adam Nelson <ad...@varud.com> wrote:
Those directions are extremely old.  I've updated the wiki page accordingly and put a link here:


Use one of those packages.

In general, with Django, the procedure should be:

1. Is there a good Django package available?
2. If not, is there a good Python package available?
3. If not, reconsider what you're doing
4. Only now, start writing your own code and ideally have that code be open source as a Django or Python package.

Cheers,
Adam
_______________________________________________
skunkworks mailing list
skunk...@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://orion.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke


_______________________________________________
skunkworks mailing list
skunk...@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://orion.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke

Martin Chiteri

unread,
May 22, 2013, 4:51:24 AM5/22/13
to Skunkworks Mailing List, Nairobi Python Programmers
Django-TinyMCE worked like a charm, thank you once again. There must have been a network failure yesterday when I attempted to pull the packages off the Python packaging index because I remember pip was not able to find its files. Here are the instructions that fixed my issue today. 

django-tinymce-screen0.JPG

Adam Nelson

unread,
May 22, 2013, 5:10:57 AM5/22/13
to Skunkworks Mailing List, Nairobi Python Programmers
I would also suggest just moving to Django 1.5.1 from 1.4.x.  That should reduce the number of outdated problems you run into ... and you get all of these great features :-)

Martin Chiteri

unread,
May 22, 2013, 5:15:16 AM5/22/13
to Nairobi Python Programmers, Skunkworks Mailing List
I will actually just wait for Django v1.6 which I understand is cross compatible with Python 3.x and Python 2.6+ simultaneously. As far as I know, Django 1.5 is sort of an experimental release to test compatibility with Python 3k? Good times ahead :-D

Martin.


--
You received this message because you are subscribed to the Google Groups "Nairobi Python Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to naipug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Adam Nelson

unread,
May 22, 2013, 5:25:46 AM5/22/13
to Skunkworks Mailing List, Nairobi Python Programmers
1.5 is experimental on Python 3 and stable on Python 2.

It's a fully stable release if it's running on Python 2.7.x

Martin Chiteri

unread,
May 22, 2013, 5:36:40 AM5/22/13
to Nairobi Python Programmers, Skunkworks Mailing List
Okay,  

Martin.
pip-upgrade-django0.JPG

Kenneth Kinyanjui

unread,
May 23, 2013, 4:58:45 PM5/23/13
to nai...@googlegroups.com, Skunkworks Mailing List
Hi Martin use Virtualenv for you projects so that you can have many versions for different environments.

Regards Kenneth

Martin Chiteri

unread,
May 23, 2013, 8:38:53 PM5/23/13
to nai...@googlegroups.com

Thanks Kenneth. I use virtual env, but only at home :-)

That is my box at the workplace.

Martin.

Reply all
Reply to author
Forward
0 new messages