Disclaimer: I am new to python and django but have experience programming in Drupal.
On my django site (installed on the local user’s PC), I have an html template (django) form like this:
<form id="blah" method="post" action="">
<input type="file" id="fname" size="50"/>
This is almost perfect. However, my application requires the user to click Browse (e.g., on Microsoft Windows) and then select not a File but a Folder (I just need the textual path provided by the Browse button). I do not need to transfer any files or folders. I simply need that path (e.g. c:/users/name/desktop/folder)
How would you do this? jquery? html? python? django?
You can not.
Browsers have security features to restrict file access from websites. Some browsers would let you get away with a full file path if the user selects a file, but some (at least Chrome) even obfuscate that.
I believe your best bet would be flash.