1👍
✅
Reverse only works with named url patterns. You need to do:
urlpatterns = patterns('main.views',
url(r'^$', 'home', name='home'),
)
in order to do:
reverse('home')
Source:stackexchange.com