NoReverseMatch at /question/i/abcd-edfg
 

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
A. Pritschet's avatar
1
A. Pritschet
asked 11 years ago

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 (11 years ago)

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 (11 years ago)

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 (11 years ago)

Thanks for verifying this, sounds like a bug indeed.

Evgeny's avatar Evgeny (11 years ago)

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 (11 years ago)
see more comments