VariableDoesNotExist 500.jinja.html b/c no RequestContext

Server 500 errors on my installation fail to render because the handler500 is passing an empty context when the 500.jinja.html is expecting RequestContext.

There used to be a work around in the PageSize middleware. But now that has been removed. I assume you have dealt with the problem elsewhere, but I cant find where.

My details:

  • database migrations run up to and including number 0122
  • request template context processor is present
  • the urls.py tuple isn't empty

The site was generated using the askbot-setup command and I loaded a previous forum that had migrations up to and including 0113 applied.

Any clues on where to look?

Jtrain's avatar
293
Jtrain
asked 2012-06-28 16:46:18 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-06-29 00:09:29 -0600
edit flag offensive 0 remove flag close merge delete

Comments

If it helps you out, I did a fresh install without loading from a previous forum (having dropped the database) and I see the same problem. Askbot Version 0.7.43 according to the footer.

Jtrain's avatar Jtrain (2012-06-28 16:55:17 -0600) edit

Maybe we could create custom handler500? Should not hurt to have one extra variable in the context...

Evgeny's avatar Evgeny (2012-06-29 00:11:27 -0600) edit

I guess so, but maybe I'm doing it all wrong. Does anyone else have the same error or symptoms?

Jtrain's avatar Jtrain (2012-06-29 03:11:30 -0600) edit

I've migrated to master branch now. Perhaps this fixes the issue, it did fix the problem I had with RSS urls

Jtrain's avatar Jtrain (2012-06-29 08:37:32 -0600) edit
add a comment see more comments