Django - Which model field for dir path?
Maybe try to loop through those file-systems and specify them under a function path and also loop through the sub-paths separately, this should show u the entire subtree as it would run every single one at a time separately. I think u r hving problem because Django is not running all the possible sub-file-systems.
Hope that helps
I need to define a field in my Model, which is supposed to host a valid dir path on server-side.
Basically just a string which should be:
1) a formally valid unix-like dir path
2) an existing dir path
Tried with FilePathField with options allow_files=False, allow_folders=True . 
But when I try to create a new instance of the model from the django admin CRUD, I'm getting an error claiming that the initial value of the field (which is by default an empty string) is a not existing path...
I have a feeling this is not the right way. Maybe another field type could be more suitable? Maybe it should be just a simple string? (in this case, shall I be able to define correctly the required validators?)
Thanks for any hint,
Thomas