Reverse viewname inside widget doesn't work on django 1.2?

3 views
Skip to first unread message

Joshua Partogi

unread,
Nov 22, 2009, 7:59:23 AM11/22/09
to django...@googlegroups.com
Hi all,

I tried to reverse url by calling:
reverse('wmd-settings-js')

inside a widget as such:
class MarkDownInput(forms.Textarea):
class Media:
js = (reverse('wmd-settings-js'))


But then I would get this error from django:
Exception Type: ImproperlyConfigured
Exception Value:

The included urlconf job_board.urls doesn't have any patterns in it

Has the behaviour changed in django 1.2 now? Can't we call reverse
from a widget anymore?

Thanks for the help.


Regards,

--
Certified Scrum Master
http://blog.scrum8.com | http://jobs.scrum8.com | http://twitter.com/scrum8
Reply all
Reply to author
Forward
0 new messages