django-blog-zinnia / zinnia-wysiwyg-tinymce

BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

Running into a NoReverseMatch error when I tried to run this... solutions? #1

Closed angusrchen closed 10 years ago

angusrchen commented 10 years ago

Hey, I got a NoReverseMatch on my development machine. I went to the file directory and there doesn't seem to be any tinymce-js file

OK - i solved that problem, i forgot to add a url(r'^tinymce/', include('tinymce.urls')), to urls.py

But i'm in the text editor and I don't see any change. It's still the same old crappy zinnia wymeditor.

Not sure what I've done wrong here.

here is my settings.py

""" import os BASE_DIR = os.path.dirname(os.path.dirname(file))

DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []

INSTALLED_APPS = ( 'grappelli', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.comments', 'django.contrib.sites', 'tagging', 'mptt', 'zinnia', 'zinnia_tinymce', )

TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors.static', 'zinnia.context_processors.version', )

SITE_ID = 1

ZINNIA_ENTRY_CONTENT_TEMPLATES = [ ('zinnia/_multi_column_detail.html', 'multi-column template',), ]

ZINNIA_WYSIWYG = None #did this to make sure zinnia wasn't using the old WYG editor..

from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP

TEMPLATE_CONTEXT_PROCESSORS = TCP + ( 'django.core.context_processors.request', )

STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', )

MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', )

ROOT_URLCONF = 'arc.urls'

WSGI_APPLICATION = 'arc.wsgi.application'

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

STATIC_URL = '/static/' MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static') MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'media')

STATICFILES_DIRS = ( 'src/', )

TEMPLATE_DIRS = ( 'static/templates', )

Fantomas42 commented 10 years ago

Hello,

do you use the development version of Zinnia ? Or the latest stable release ? Because it's only works for the now with the development version of Zinnia.

angusrchen commented 10 years ago

Hmm, I am using the stable release of zinnia. I need to be on the development version?

Phone: 609.439.8505 Twitter: @angRchen https://twitter.com/angRchen Website: www.angusrchen.com http://www.angusrchen.com/index.html

On Mon, Aug 18, 2014 at 8:51 AM, Julien Fache notifications@github.com wrote:

Hello,

do you use the development version of Zinnia ? Or the latest stable release ? Because it's only works for the now with the development version of Zinnia.

— Reply to this email directly or view it on GitHub https://github.com/django-blog-zinnia/zinnia-wysiwyg-tinymce/issues/1#issuecomment-52487445 .

Fantomas42 commented 10 years ago

Yes if you want to use zinnia-wysiwyg-tinymce. If you are using the stable version, just set

ZINNIA_WYSIWYG = 'tinymce'

Regards