I have installed FeinCMS and I would like to try the demo site in
example/.
I am running Django 1.1.1 so I have changed the csrf lines in
settings.py MIDDLEWARE_CLASES:
# 'django.middleware.csrf.CsrfViewMiddleware',
# 'django.middleware.csrf.CsrfResponseMiddleware',
'django.contrib.csrf.middleware.CsrfViewMiddleware', # for
django 1.1.1
'django.contrib.csrf.middleware.CsrfResponseMiddleware', #
Running the test server works, but browsing to localhost:8000 raises
an error:
Exception Type: ImproperlyConfigured
Exception Value: You need to register at least one template for
Page before the admin code is included.
However, on line 16 of example/models.py there is a
Page.register_templates() method and it seems templates are
registered.
Please can anyone help me solve this problem?
Best wishes
Ivan
Feincms seems to swallow exceptions in the startup phase and then do
some of the initialisations. Ie. what you are seeing is a secondary
error from something falling over earlier on.
mjl
Thanks for yor help, that's useful.
So FeinCMS will fall over and give irrelevant error messages. Do you
know any way I can find out what caused the real error?
In the meantime I'll be looking at Django-CMS2
Best wishes
Ivan
On Jan 26, 6:14 pm, "Martin J. Laubach" <mjl+goo...@emsi.priv.at>
wrote:
I usually either wrap the code I suspect into my own try/except
block or use "manage.py shell" and then load the modules manually to
see what causes errors. I agree, it's not very user friendly, we just
haven't found the spot where the exceptions are being swallowed yet.
Any hints are appreciated!
mjl