Hi-

I have a FilePathField in a form that displays directory contents as
expected. However if I add or remove a file to/from the directory the
change is not updated in the form.
I'm probably just using FilePathField in a wrong way...

Here is the from:

from django import forms

class MyForm(forms.Form):
        the_file = forms.FilePathField(path='c:/temp')

and the corresponding view:

from django.shortcuts import render_to_response, get_object_or_404
from forms import MyForm

def test(request):
        form = MyForm()
        return render_to_response('test.html', {'form' : form})

Any help would be apreciated,

-markus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to