Craig, Not sure what would be causing your error. But to answer your second question, your files should automatically be uploaded by the FileField. As long as the web server has write access, the files should be uploaded to MEDIA_ROOT/upload_to where upload_to is the argument to your file field.
Check out http://www.djangoproject.com/documentation/model-api/#filefield -Robin On Apr 23, 1:02 pm, "Craig Kuhns" <[EMAIL PROTECTED]> wrote: > Hey every one. I am pretty new to Python and Django coming over from > Ruby on Rails. I am creating an app where different ministries will > have profiles on a site and each profile will have a logo or picture > associated with it. The site is far from going live but I am working > on getting the basic functionality going right now. > > I decided that for beginning purposes I would use a FileField in my > models instead of an ImageField so that i can get the uploads working > right and then worry about moving to an ImageField. My > question/problem is this... > > When creating a new profile in the admin I can tell the file upload > box to take any file that I want but when I go to edit a profile and > tell it to use a differen file from the one already specified it comes > back with an error telling me to use a valid filename. It only > happens if a filename is already saved into the database. In fact if > I have already uploaded a file then I can never edit that record > because everytime I go to save the edits I get that error. > > The other question I have is about the actual file uploading. All the > FileField does is saves the url of the file to a column in the > database I understand that. What do i have to do to have the file > actually uploaded. In the settings file I added a media root and a > media url. What else do I have to do? > > Thanks > > Craig --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---