I am not able to render my file fields in the Database so not able to upload image

2020-02-20 Thread mick
forms.py class FormStep8(forms.Form): portraitphoto=forms.ImageField(label='Portrait photos of yourself') high_resolution=forms.ImageField(label='3 High Resolution pictures') company_logo=forms.ImageField(label='Company Logo') product_images=forms.ImageField(label='Product Image

Re: file fields

2017-02-18 Thread ايهاب توفيق
thank you for your help I solve the problem and it working بتاريخ الخميس، 26 يناير، 2017 1:04:28 ص UTC+2، كتب ايهاب توفيق: > > I am new in django and to know how to use multiple file field in the same > model can any one help me > -- You received this message because you are subscribed to the G

Re: file fields

2017-02-12 Thread ludovic coues
Ok, sorry for the delayed response, I was a bit busy the last few days The error is the location argument for your FileSystemStorage. It should be a string and you are passing a tuple. That's why you get a TypeError with illegal type for parameter. Have you tried to entirely remove the storage arg

Re: file fields

2017-02-08 Thread ايهاب توفيق
hi this backtrace Performing system checks... System check identified no issues (0 silenced). Unhandled exception in thread started by .wrapper at 0x036B8588> Traceback (most recent call last): File "C:\Users\e.bugaighis\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\

Re: file fields

2017-02-07 Thread ludovic coues
Can you post the full backtrace ? 2017-02-07 20:15 GMT+01:00 ايهاب توفيق : > > this the error that keep coming up TypeError: _getfullpathname: illegal type > for path parameter > بتاريخ الخميس، 26 يناير، 2017 1:04:28 ص UTC+2، كتب ايهاب توفيق: >> >> I am new in django and to know how to use multipl

Re: file fields

2017-02-07 Thread ايهاب توفيق
this the error that keep coming up TypeError: _getfullpathname: illegal type for path parameter بتاريخ الخميس، 26 يناير، 2017 1:04:28 ص UTC+2، كتب ايهاب توفيق: > > I am new in django and to know how to use multiple file field in the same > model can any one help me > -- You received this mess

Re: file fields

2017-01-28 Thread ludovic coues
The error should give some information on what is going wrong and how to fix it 2017-01-27 23:25 GMT+01:00 ايهاب توفيق : > > Thank you for your reply and I try the fixed model but the problem with the > view that I use to store the files from templets to the db I followed the > django documents as

Re: file fields

2017-01-27 Thread ايهاب توفيق
Thank you for your reply and I try the fixed model but the problem with the view that I use to store the files from templets to the db I followed the django documents as *def *custmoer(request): *if *request.method == *'POST'*: form = CustomerForm(request.POST, request.FILES)

Re: file fields

2017-01-26 Thread ludovic coues
If you want a fixed set of file field, you declare multiple file field, each with a different name. For exemple: class UserProfile(models.Model): photo_front = models.FileField(...) photo_side = models.FileField(...) If you want a list of photo, you don't know yet how many, yo

file fields

2017-01-25 Thread ايهاب توفيق
I am new in django and to know how to use multiple file field in the same model can any one help me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users

Re: Problems with Django File Fields

2010-05-31 Thread Nuno Maltez
ew that validates the user's permissions and returns the filepath to mod xsendfile. It's not a perfect solution but it's the best I found so far, at least for my purposes :) Nuno On Mon, May 31, 2010 at 2:06 PM, klaasvanschel...@gmail.com wrote: > Hi All, > > The standa

Problems with Django File Fields

2010-05-31 Thread klaasvanschel...@gmail.com
Hi All, The standard Django File Fields (both on models and the form equivalent) have a number of shortcomings from my point of view / in my field. The most important of these are: * The result of uploaded file fields are assumed to be "public", i.e. served through the MEDIA url. I wo

Re: prepopulate file fields in forms after validation errors

2009-05-26 Thread Bastien
Thank you Daniel, then the users will just re enter the files and feel secure :) On May 26, 1:42 pm, Daniel Roseman wrote: > On May 26, 12:30 pm, Bastien wrote: > > > Hi, > > > When I have some validation errors in my forms they automatically get > > reloaded after POST with all the fields alre

Re: prepopulate file fields in forms after validation errors

2009-05-26 Thread Daniel Roseman
On May 26, 12:30 pm, Bastien wrote: > Hi, > > When I have some validation errors in my forms they automatically get > reloaded after POST with all the fields already filled with what the > user already introduced before POST and she only has to change > whatever was wrong in the first place. But

prepopulate file fields in forms after validation errors

2009-05-26 Thread Bastien
Hi, When I have some validation errors in my forms they automatically get reloaded after POST with all the fields already filled with what the user already introduced before POST and she only has to change whatever was wrong in the first place. But for files or images, the path disappears and the

Cannot create model objects with file fields from shell

2009-03-03 Thread Brian Morton
I am having trouble getting this script to work. My intent is to load images into the db in bulk from the filesystem. http://pastebin.com/m40565da9 When I execute this, I get the following error: Traceback (most recent call last): File "load_images.py", line 16, in GalleryImage.objects.

file names for db file fields

2007-01-29 Thread shaunc
There are two methods in the db api specific to files: get_FOO_filename( ) and save_FOO_file( fn, rawcontents). If we just want to treat the associated file as an anonymous "blob", can we say: mod.save_FOO_file( mod.get_FOO_filename(), rawcontents ) Or do we need to provide a filename on f

Re: processor for file fields

2005-08-09 Thread [EMAIL PROTECTED]
Nothing like answering your own question: http://www.djangoproject.com/documentation/models/save_delete_hooks/ looks like that will do what I want --B

processor for file fields

2005-08-09 Thread [EMAIL PROTECTED]
I'm not sure if this is possible, so I figured I'd ask before reinventing the wheel 8) I'm working on a project where I will upload 2 files as FileFields: an mp3 and an openoffice document. After these are uploaded I want them both processed in different ways. My question: Is there a hook alrea