I have a class file something like myclass.py in project/myapp/myclass.py
how can I use reverse() in there? I can’t find any information how to import urlConf! without getting urls, i have exception NoReverseMatch
in fact django-jqgrid using this kind of method in their example: https://github.com/gerry/django-jqgrid
You can always import
django.core.urlresolvers.reverseand pass it necessaryargsandkwargsto reverse.The reverse defnition is:
In your view you can always do:
Refer the documentation for more.