Django - Which model field for dir path?
try saving the path(the string) in a dictionary first as it is a path, then saving it in the server as a dictionary it would work and would be a whole lot easier.
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