Re: Overwhelmed by File upload instructions

2010-07-09 Thread Lee Hinde
I recently struggled with file transfers. After I was done I discovered django-filetransfers. http://www.allbuttonspressed.com/projects/django-filetransfers On Thu, Jul 8, 2010 at 2:55 PM, Rodion Raskolnikiv wrote: > Soo easy... > Thanks for the tips! > I knew that there had to be a simple solu

Re: Overwhelmed by File upload instructions

2010-07-08 Thread Rodion Raskolnikiv
Soo easy... Thanks for the tips! I knew that there had to be a simple solution!! On Jul 8, 2:02 pm, Daniel Roseman wrote: > On Jul 8, 6:28 pm, Rodion Raskolnikiv wrote: > > > > > > > Good morning! > > I have been wanting to design a model (to be administered via the > > admin area) which would a

Re: Overwhelmed by File upload instructions

2010-07-08 Thread Daniel Roseman
On Jul 8, 6:28 pm, Rodion Raskolnikiv wrote: > Good morning! > I have been wanting to design a model (to be administered via the > admin area) which would allow for file uploads. I have not been able > to grasp a singular, simple approach to this. Perhaps things are > complicated by Django's prefe

Re: Overwhelmed by File upload instructions

2010-07-08 Thread Rodion Raskolnikiv
I was totally on the wrong trail! Hopefully this post can serve others who were in my dilemma: If you are looking to have a file as part of your model definition, look here: http://docs.djangoproject.com/en/dev/topics/files/ Looking in these locations did not supply what I was after: http://doc

Re: Overwhelmed by File upload instructions

2010-07-08 Thread Daniel Roseman
On Jul 8, 7:25 pm, Rodion Raskolnikiv wrote: > To be more specific, here is what I have tried: > > # in models.py > from django import forms > > class UploadFileForm(forms.Form): >     title = forms.CharField(max_length=50) >     file  = forms.FileField() > > # in admin.py > from proj.app.models i

Re: Overwhelmed by File upload instructions

2010-07-08 Thread Rodion Raskolnikiv
To be more specific, here is what I have tried: # in models.py from django import forms class UploadFileForm(forms.Form): title = forms.CharField(max_length=50) file = forms.FileField() # in admin.py from proj.app.models import UploadFileForm admin.site.register(UploadFileForm) Which

Overwhelmed by File upload instructions

2010-07-08 Thread Rodion Raskolnikiv
Good morning! I have been wanting to design a model (to be administered via the admin area) which would allow for file uploads. I have not been able to grasp a singular, simple approach to this. Perhaps things are complicated by Django's preference for serving media files under a different domain,