django-flatpages-tinymce icon indicating copy to clipboard operation
django-flatpages-tinymce copied to clipboard

django 1.6, failing with "tuple index out of range"

Open ccurvey opened this issue 11 years ago • 6 comments

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.

ccurvey avatar Jan 16 '14 14:01 ccurvey

Still not working. :(

Ivaylo-Bachvarov avatar Apr 18 '14 16:04 Ivaylo-Bachvarov

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.

elky avatar Jul 19 '14 10:07 elky

I created a PR that should fix this. https://github.com/mjr27/django-flatpages-tinymce/pull/20

src-r-r avatar Sep 13 '20 22:09 src-r-r

@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.

elky avatar Sep 13 '20 23:09 elky

:raised_hands: :hotsprings: :potato: :raised_hands:

src-r-r avatar Sep 15 '20 14:09 src-r-r

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 )

src-r-r avatar Sep 15 '20 14:09 src-r-r