Page.register_templates() in the example/ site

28 views
Skip to first unread message

Ivan Uemlianin

unread,
Jan 26, 2010, 12:26:57 PM1/26/10
to Django FeinCMS
Dear All

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

Martin J. Laubach

unread,
Jan 26, 2010, 1:14:57 PM1/26/10
to Django FeinCMS
>   Exception Value:      You need to register at least one template for
> Page before the admin code is included.

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

Ivan Uemlianin

unread,
Jan 27, 2010, 6:17:09 AM1/27/10
to Django FeinCMS
Dear Martin

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:

Martin J. Laubach

unread,
Jan 27, 2010, 6:58:28 AM1/27/10
to Django FeinCMS
> know any way I can find out what caused the real error?

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

Reply all
Reply to author
Forward
0 new messages