django-flatpages-tinymce
django-flatpages-tinymce copied to clipboard
django 1.6, failing with "tuple index out of range"
relevant part of stack trace...
C:\Users\ccurvey\Envs\saskia\lib\site-packages\flatpages_tinymce\settings.py in <module>
TEMPLATE_DIR = getattr(settings, "FLATPAGES_TEMPLATE_DIR", os.path.join(settings.TEMPLATE_DIRS[0], 'flatpages'))
do I have to make an adjustment to my settings file? I tried settings FLATPAGES_TEMPLATE_DIR, but that does not seem to be helping.
Still not working. :(
You have to have TEMPLATE_DIRS setting in your settings.py like this:
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(os.path.dirname(__file__)), 'site/templates'),
)
But then you will have another exception: No module named defaults - this is because django.conf.urls.defaults has been deprecated in Django 1.6. You can manually edit admin.py for this app to replace from django.conf.urls.defaults import patterns, url with from django.conf.urls import patterns, url, include but this is bullshit.
Anyway, app doesn't work.
I created a PR that should fix this. https://github.com/mjr27/django-flatpages-tinymce/pull/20
@src-r-r wow. It looks like this repo is dead so I think it's better to use your fork so people can at least install it with pip.
:raised_hands: :hotsprings: :potato: :raised_hands:
But in all seriousness, @mjr27, do you think it would be best to delete the package from pypi and allow my version to go up? And another question for the group...is there still a demand for this package? (I was also considering making the same changes to django-flatpages-markdown )