I am trying to figure out how to create a model field that doesn't
pull from the database but instead pulls from the file system, shows
it in the forms as a Textarea, then just saves it back to file system
when the model is saved.

In my mind it seems pretty simple. I have read the custom models page
in the documentation but keep running around in circles. I can think
of two ways to do it. Write a custom object that handles it or somehow
extend the FileField. It seems that the FileField option would be the
better of the two options. I can get the form to show a textarea but
have no idea what I need to override to get the value of the textarea
to be populated with the contents of a file and then have that pulled
from the form to be put back into a file.

Any ideas? Has this already been written somewhere? I'm just getting
started with python and django so if there are resources that I missed
please let me know.

Thanks,

Randy

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