Questions tagged [imagefield]

A place to store or display a graphic image.

"Image field" is a generic term that typically would belong in a or setting such as:

It appears to be a synonym for .

342 questions
0
votes
0 answers

How to display image with bounded Form

my view.py form_data = { 'message':data_dict['message'] 'contract_image': data_dict['contract_image']} form = AddMcc(form_data) print form['message'] // (apple equal data_dict['message'] I…
Windsooon
  • 6,864
  • 4
  • 31
  • 50
0
votes
0 answers

Image not displayed after Django form save

I have a formset (more specifically a generic inline formset) whose forms have an ImageField. After working around what seems to be a few Django bugs, everything is working fine, except that when I fill the blank form with a new image and click…
Ariel
  • 3,383
  • 4
  • 43
  • 58
0
votes
1 answer

How to add title attribute to link tags generated by view in Drupal?

I've built a view using the views module in Drupal to display a grid of thumbnail images (field_image) that are linked to a full size image for use with Lightbox. I've got that part working but I also display caption text beneath the thumbnail…
Camsoft
  • 11,718
  • 19
  • 83
  • 120
0
votes
1 answer

Silverstripe ImageField not found

I'm trying to extend Member class and add a number of fields to it. At the same time I am making this DataObject behave as a page so that I can go to www.mysite.com/member/show/1 and see that user's profile. I have not yet gotten to the point of…
Bagzli
  • 6,254
  • 17
  • 80
  • 163
0
votes
1 answer

Image is not uploading via form

I am making django project and have one problem with uploading images in forms. So, I tried to add one object with image, in admin this is working, but in form on site - not. My views: def newbook(request, user_id): form = BookAdd(request.POST…
0
votes
2 answers

Storing external img in Drupal as if it was uploaded by user

I have a scenario where users can upload an image, OR a video (from youtube or vimeo) using CCK via ImageField (Images) & Embedded Media Field (Videos) My site has been using the ImageField images to create thumbnails in various views with…
askon
  • 671
  • 2
  • 10
  • 24
0
votes
1 answer

Django - default image not showing for imagefield

So I have a page on my website in which I am displaying an image and if the user does not upload an image a default image is assigned. At the moment I am only trying to get default images to work but I can't seem to get it. My code is below and I…
Programmingjoe
  • 2,169
  • 2
  • 26
  • 46
0
votes
1 answer

picture from SQL database not displayed by jquery lightbox in detailsView ImageField and asp:Image control (master pages)

when i click the picture that is displayed in the detailsView ImageField, the jquery lightbox pops up, but does not show the picture. it shows a red x in the middle of the lightbox. the same thing happens with the asp:Image control shown in the…
0
votes
1 answer

Images from ImageField doesn't load in a template

I'm creating a real-estate agency website. Each offer has several photos and one of them, after marking it in the admin panel as the main photo, should be displayed at the index page but unfortunately it isn't. I think that the problem is either in…
dominik791
  • 692
  • 6
  • 17
0
votes
1 answer

Using .update with nested Serializer to post Image

I have an ImageField. When I update it with the .update command, it does not properly save. It validates, returns a successful save, and says it is good. However, the image is never saved (I don't see it in my /media like I do my other pictures),…
Diesel
  • 5,099
  • 7
  • 43
  • 81
0
votes
2 answers

Django: Querying to ImageField all images are being rendered

So my problem is that when I try to query to the image url so it can be posted to its corresponding Post all the images that have been uploaded to the media folder is being rendered, even though in the admin panel it shows that each post has it's…
qasimalbaqali
  • 2,079
  • 24
  • 51
0
votes
0 answers

Django ImageField Alternatives

I am using shared host with virtualenv to run Django Things run well, however, I can not use ImageField because gcc can not run, and I can not install Pillow. Is there any other way that can be use instead of ImageField ? Can I use FileField…
Nguyên DT
  • 145
  • 1
  • 2
  • 7
0
votes
1 answer

Images not showing up in Django template when using Windows

I am learning Django by developing a blog. My code was working in both Linux and Windows. Recently, I started added images to my models with ImageField and it works in Linux but I can't get it to work in Windows. I am using a standalone server. Here…
Shiv Kumar
  • 361
  • 5
  • 16
0
votes
1 answer

Django two imageFields one image file

I'd like my two image fields point to the same image. At one time, I'll have one image field populated. At later time, I'd like another imageField to point to the same file. (If the first one changes, the second one gets updated as well) The file is…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
0 answers

Django Custom Model Field clean() is not called when I inherit the class containing the custom field in another class.

I have 2 model classes class A(models.Model) in app1 and class B(A) in app2 as follows: #app1/models.py class CustomImageField(models.ImageField): """ Same as ImageField, but you can specify: * max_upload_size - a number indicating…
attaboyabhipro
  • 1,450
  • 1
  • 17
  • 33