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
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
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
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\
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
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
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
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)
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
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
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
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
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
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
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
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.
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
Nothing like answering your own question:
http://www.djangoproject.com/documentation/models/save_delete_hooks/
looks like that will do what I want
--B
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
19 matches
Mail list logo