zapier / django-knowledge

Add a help desk or knowledge base to your Django project with only a few lines of boilerplate code.
http://github.com/zapier/django-knowledge
ISC License
486 stars 116 forks source link

django 1.6.* support? #63

Closed sunjoomoon closed 10 years ago

sunjoomoon commented 10 years ago

/knowledge url is working fine, but then when clicking a question, below is returned

" NoReverseMatch at /knowledge/ask/ Reverse for 'knowledge_thread' with arguments '(3, u'')' and keyword arguments '{}' not found. 1 pattern(s) tried: ['knowledge/questions/(?P\d+)/(?P[a-z0-9-_]+)/$']"

And in the error message it refers to " knowledge/templates/django_knowledge/sidebar.html, error at line 11" which is "" and official djangoproject.com says "exception NoReverseMatch The NoReverseMatch exception is raised by django.core.urlresolvers when a matching URL in your URLconf cannot be identified based on the parameters supplied"

What do I have to look into ? Is it django1.6 compatibility issue ? BTW, I am using django1.6.1

ScottEAdams commented 10 years ago

To get it working out of the box with 1.6 you need to install markdown and django-markup-deperecated and add this to your installed apps.

'markup_deprecated', 'markdown', 'knowledge',

robnewman commented 10 years ago

IMHO using django-markup-deprecated is a patch that will hurt you down the track. Better to fix the problem in the code-base. You can look at my fork of this repo which solves the problem, but as I noted in the issue I opened on this (and that @7wonders commented on), the owner hasn't merged my multiple pull requests.

sunjoomoon commented 10 years ago

Somehow I think it has been resolved. I removed 'markdown' from thread.html. Seems it is working. Working around ensuring all in good shape. BTW markedown is not required for me ;)