Tentando usar django e dropzone /

Estou tentando usar o dropzone.js com o django.

Estou seguindo o guia um pouco datado aqui (https://amatellanes.wordpress.com/2013/11/05/dropzonejs-django-how-to-build-a-file-upload-form/)

Eu suspeito fortemente que minha opinião esteja em questão.

def test(request):
    print "test view has been called"
    if request.method == 'POST':
        print "test request method is POST"
        form = UploadFileForm(request.POST, request.FILES)
        print request
        print request.FILES
        if form.is_valid():
            new_file = AttachedFiles(attachedfile=request.FILES['file'])
            new_file.save()
            id = new_file.pk
            print id
            print "test form valid"
            return HttpResponse(json.dumps({'id': id}), content_type="application/json")
       print "test form not valid"
   else:
       form = UploadFileForm()
   data = {'form': form}
   return render_to_response('mediamanager/test.html', data, context_instance=RequestContext(request))

Testei o envio para ele com o código dropzone

        <!-- IMPORTANT enctype attribute! -->
    <form id="my_dropzone" class="dropzone" action="/mediamanager/test/" method="post" enctype="multipart/form-data">
        {% csrf_token %}
     <button id="submit-all">
        Submit all files
    </button>
    </form>
    <script src="{% static 'dropzone/js/dropzone.js' %}"></script>
    <script type="text/javascript">
        Dropzone.options.myDropzone = {

            // Prevents Dropzone from uploading dropped files immediately
            autoProcessQueue : true,

            init : function() {
                var submitButton = document.querySelector("#submit-all")
                myDropzone = this;

                submitButton.addEventListener("click", function() {
                    myDropzone.processQueue();
                    // Tell Dropzone to process all queued files.
                });

                // You might want to show the submit button only when
                // files are dropped here:
                this.on("addedfile", function() {
                    // Show submit button here and/or inform user to click it.
                    console.log("blah")
                });
            }
        };
    </script>

e uma forma básica

<form action="{% url "test" %}" method="post" enctype="multipart/form-data">
  {% csrf_token %}
<input type="file" name="file" />
<input type="submit" value="Submit">
</form>

E o formulário nunca é válido. Estou usando um modelform como sugerido

class UploadFileForm(forms.ModelForm):
    class Meta:
        model = AttachedFiles

questionAnswers(2)

yourAnswerToTheQuestion