
django-tinymce - issue #93
django-tinymce does not work with staticfiles' AppDirectoriesFinder
What steps will reproduce the problem? 1. install django-tinymce, configure as in documentation 2. run ./manage.py findstatic 'tiny_mce/tiny_mce.js' 3. no results
The problem with this is that django-tinymce doesn't have a models.py. Every django app must have a models.py, even if it is empty. The AppDirectoriesFinder finds apps by looking for modules with a models.py, so it is excluded from the apps list.
Comment #1
Posted on Jan 16, 2011 by Grumpy KangarooAlso, this is with django 1.3, using the builtin contrib.staticfiles app.
Comment #2
Posted on Jan 16, 2011 by Grumpy KangarooOk, never mind. this was my bad. I missed putting tinymce in my installed_apps. I guess I jumped to conclusions because I ran into this problem w/ a different app and it was the models.py problem. Really sorry!
Comment #3
Posted on Jan 16, 2011 by Grumpy KangarooActually wait, I was right, there is still a bug. Django 1.3's AppDirectoriesFinder looks for static files within a "static" folder, not the "media" folder. django-tinymce stores its files in the media folder. It works when I symlink media to "static".
In order to conform to django-1.3's new way of doing things, django-tinymce's media directory should be renamed to "static".
Comment #4
Posted on Jan 16, 2011 by Grumpy KangarooAs a workaround, you'd have to put this in your settings.py:
import tinymce TINYMCE_JS_URL = '%stiny_mce/tiny_mce.js' % STATIC_URL STATICFILES_DIRS += (os.path.join(os.path.dirname(tinymce.file), 'media'),)
Comment #5
Posted on Feb 15, 2012 by Happy Kangaroodjango-tinymce development (code and issues) moved to github. please reopen this issue on github if it still exists. https://github.com/aljosa/django-tinymce
Status: WontFix
Labels:
Type-Defect
Priority-Medium