views.py:
def index(request):
return render_to_response(\'index.html\', {})
def photos(request, artist):
if not artist:
r
This worked for me:
{% csrf_token %} In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL.
In views.py:
from django.template import RequestContext
...
...
...
return render_to_response("home.html", {}, context_instance=RequestContext(request))