I getting a 'Reverse for 'views.mainPage' with arguments '()' and keyword arguments '{}' not found.'
mainPage method in /django_crm/crm/views.py
@login_required
def mainPage(request):
variables = RequestContext(request, {
'user': request.user,
})
return render_to_response('mainPage.html', variables)
and /django_crm/django_crm/templates/mainPage.html
<html>
<head>
<title>test</title>
</head>
<body>
{% url 'crm.views.mainPage' %}
</body>
</html>
Error...
Reverse for ''crm.views.mainPage'' with arguments '()' and keyword arguments '{}' not found.
{% load url from future %}
if you are using django < 1.5Or
Remove quotes from url tag.