Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FIlePathField does not update
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kusako  
View profile  
 More options Jun 26 2009, 11:37 am
From: Kusako <markus.strick...@googlemail.com>
Date: Fri, 26 Jun 2009 08:37:54 -0700 (PDT)
Local: Fri, Jun 26 2009 11:37 am
Subject: FIlePathField does not update
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »