NoReverseMatch at /question/i/abcd-edfg

  • retag add tags

Hi, I just made a clean new installation:

  • Apache 2.2.22 on Ubuntu 12.04 64bit
  • Django 1.4.5 from project page
  • askbot and other dependencies via pip

I configured the site and everything was working great with the default skin. Switching to a custom skin (copy&paste of default skin and editing of templates) almost everything is working, except for the question's detail pages, e.g. /question/1/...

I get an error message saying

NoReverseMatch at /question/2/where-can-i-find-the-model-or-serial-number-of-my-device/ 
Reverse for 'AskBot.vote' with arguments '(2L,)' and keyword arguments '{}' not found.`

Commenting out the {% url %} tags I can obtain a running system again, but the following URL-names cannot be reversed using my custom skin:

  • vote
  • answer_to_comment
A. Pritschet's avatar
1
A. Pritschet
asked 2013-06-03 09:44:57 -0600
edit flag offensive 0 remove flag close merge delete

Comments

Out of curiosity, I simply copied the default theme from /usr/local/lib/python-2.x/dist-utils/bot/templates to a new folder in custom_skins, and now my system is additionally complaining about the "title_search" name...

A. Pritschet's avatar A. Pritschet (2013-06-04 02:24:46 -0600) edit

Have you edited templates? If not - then there must be a bug, otherwise there may be a bug in your edits. Btw, I recommend you to take code from the git repo.

Evgeny's avatar Evgeny (2013-06-04 04:44:04 -0600) edit

I have tried the code from the repo, but the error remains. There definitely appears to be a problem with the templates I edited in my custom_skin. As pointed out earlier I have created a new custom_skin and used unchanged templates from the default skin. Using this unmodified skin I still get the error -- with the deselected skin; there seems to be still some erroneous data in my test system's cache. Most curiously everything was working fine on my Django dev. server...

A. Pritschet's avatar A. Pritschet (2013-06-04 12:27:25 -0600) edit

Thanks for verifying this, sounds like a bug indeed.

Evgeny's avatar Evgeny (2013-06-04 12:29:34 -0600) edit

Strange but I was not able to confirm this. I've created a directory "custom_skins/test_skin" in the same directory where I have settings.py, then copied "askbot/templates" and "askbot/media" into the newly made directory and it worked just fine. Please enter exact steps in your question to reproduce the issue.

Evgeny's avatar Evgeny (2013-06-04 12:59:04 -0600) edit
add a comment see more comments