How to use reverse() from django.core.urlresolvers.reverse
问题 How do you use the reverse() from django.core.urlresolvers.reverse at the command line? I want to debug what is going wrong in my Django application. I am not sure if it is happening at the views , the urls or the html template page. I have the command line open in the directory of the project, but it doesn't recognize my commands (which I am borrowing from the Django-Project page). 回答1: If your urls.py file consists on something like this: urlpatterns = patterns('', url(r'^$', 'views.recent'