On Mon, 3 Oct 2011 05:17:49 -0700 (PDT) Victor Hooi <victorh...@gmail.com> wrote:
> from django.shortcuts import render > ... > def upload_file(request): > ... > return render('upload_form.html', {'form': form}) "render" requires as its first argument the request object supplied to your view function. So, your example should be: def upload_file(request): ... return render(request, 'upload_form.html', {'form': form}) Sebastian. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.