Embedding multiple images in html email

2009-10-15 Thread Muhammed Abad
As the topic says, can I embed multiple images in an html email template so the recipient does not have to download them? I know this might be a silly request, but a client has asked me to do this for him and Im absolutely stumped. The closest to a solution I have come to is this : http

django images nginx and authentication

2009-10-15 Thread ReneMarxis
Hello i'm faceing the following problem: i have some application for creating image galleries (upload/change...). Till now the images are served by an nginx webserver (and are therefore open to everyone). The django app is running in apache with wsgi. My problem is i need to restrict the image

Re: Using shell to add images

2009-09-22 Thread Richard
No sorry it's late was just typing up the scenario to be more ledgible (i'm doing a lot with random) meant while x < 20. Basically looks like this to add a single image model: from django.core.files import File from job.models import Job, JobPhoto job = Job.objects.get(pk=1544) lp = JobPhoto()

Re: Using shell to add images

2009-09-22 Thread nausikaa
Hi Timboy Sorry but I've never seen: for x in 20: # do sth. 20 is an int object and not an iterable. Is this snippet your code? Nausikaa On Sep 22, 10:15 am, Timboy wrote: > Having issues saving model from within the shell. > > Using File from from

Using shell to add images

2009-09-22 Thread Timboy
Having issues saving model from within the shell. Using File from from django.core.files import File http://pastebin.com/f3030ca1e Tried this several different ways... TIA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Template tag for getting CSS/scripts/images

2009-09-06 Thread Daniel Roseman
On Sep 6, 5:51 am, Wiiboy wrote: > I'm considering making a custom template tag that returns a url to a > css file or image file. > > In your opinion, is it a waste of time? Not at all. This is a great way to remove dependencies on hard-coded locations, and makes it easy to

Template tag for getting CSS/scripts/images

2009-09-05 Thread Wiiboy
I'm considering making a custom template tag that returns a url to a css file or image file. In your opinion, is it a waste of time? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Gracefully uploading multiple images per post.

2009-08-24 Thread Anogar
> > On Aug 24, 12:02 am, Anogar <ryanrag...@gmail.com> wrote: > > > > I've got iamge uploading working in a portfolio app I'm working on, > > > but only with a single image. I'm trying to get it working so that you > > > can add as many or as few images as you

Re: cannot store images into file system using Imageupload

2009-08-24 Thread djangonoob
>       {{ form.as_table }} > >       > >   > >   > > {% endblock %} > > > Issue is that image names are stored in Database but when i search in > > my file system I could not find the image . > > when i repeat the same in admin site i could see the

Unable to upload images via customized form

2009-08-24 Thread djangonoob
= CustomizedForm(request.POST, request.FILES) if form.is_valid(): # here create the data object pressrelease = PressRelease.objects.create( title = form.cleaned_data['title'], body = form.cleaned_data['body'], images

Re: Gracefully uploading multiple images per post.

2009-08-24 Thread Anogar
e image. I'm trying to get it working so that you > > can add as many or as few images as you'd like, but I'm hitting a bit > > of a brick wall with the logic of how it should work. > > > Does anyone have any pointers? I basically just want to be able to > > have the

Re: Gracefully uploading multiple images per post.

2009-08-24 Thread Anogar
th a single image. I'm trying to get it working so that you > can add as many or as few images as you'd like, but I'm hitting a bit > of a brick wall with the logic of how it should work. > > Does anyone have any pointers? I basically just want to be able to > have the little "plus

Gracefully uploading multiple images per post.

2009-08-24 Thread Anogar
I've got iamge uploading working in a portfolio app I'm working on, but only with a single image. I'm trying to get it working so that you can add as many or as few images as you'd like, but I'm hitting a bit of a brick wall with the logic of how it should work. Does anyone have any pointers? I

Re: Cannot display images - need help with settings for development environment

2009-08-22 Thread robinne
I figured it out: #MEDIA_URL = 'http://localhost:8000/testproject/site_media/' MEDIA_URL = '/site_media/' On Aug 22, 8:57 am, robinne <develo...@computer-shoppe.net> wrote: > I'm new to Django and I cannot seem to get all the settings correct to > allow me to view images in the

Cannot display images - need help with settings for development environment

2009-08-22 Thread robinne
I'm new to Django and I cannot seem to get all the settings correct to allow me to view images in the development environment. Here is what I know (I'm developing on Vista): For internal server to serve images, you have to configure django settings, so here is what I've done. [My actual path

Re: Admin site images not coming up in 1.1

2009-08-05 Thread Joshua Partogi
On Thu, Aug 6, 2009 at 2:34 PM, emily wong wrote: > > Thanks Malcolm, I've figured it out. There were some changes to the > admin's index.html page. I've updated to the 1.1 one. > All the best, > Emily > How did you fix it? Because I experience the same thing too.

Re: Admin site images not coming up in 1.1

2009-08-05 Thread emily wong
Thanks Malcolm, I've figured it out. There were some changes to the admin's index.html page. I've updated to the 1.1 one. All the best, Emily --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Admin site images not coming up in 1.1

2009-08-05 Thread Malcolm Tredinnick
On Wed, 2009-08-05 at 21:09 -0700, emy_66 wrote: > Hi, > > Just migrating my application to 1.1. Everything works fine except the > images inside the admin site are not showing up. Any ideas why this > may be? Everything worked with 1.0.1 and 1.0.2 I think. Remember that t

Re: Admin site images not coming up in 1.1

2009-08-05 Thread emily wong
sau...@gmail.com> wrote: > Hi, > > Just migrating my application to 1.1. Everything works fine except the > images inside the admin site are not showing up. Any ideas why this > may be? Everything worked with 1.0.1 and 1.0.2 I think

Admin site images not coming up in 1.1

2009-08-05 Thread emy_66
Hi, Just migrating my application to 1.1. Everything works fine except the images inside the admin site are not showing up. Any ideas why this may be? Everything worked with 1.0.1 and 1.0.2 I think. Thanks, Emily --~--~-~--~~~---~--~~ You received this message

Re: Multi select field with images

2009-07-31 Thread django user
n Wed, Jul 8, 2009 at 8:44 AM, ankit rai<ankit9...@gmail.com> wrote: > > > little more explanation is required > > > > On Wed, Jul 8, 2009 at 10:31 AM, djangou...@gmail.com < > > djangou...@gmail.com> > > > wrote: > > > >> I have

Re: clean_() doesn't handle images?

2009-07-31 Thread Martje
Excellent! Thank you! On 31 jul, 14:42, Karen Tracey wrote: > On Fri, Jul 31, 2009 at 3:18 AM, Martje wrote: > > > I don't understand, sorry :$. Do you care to explain a little bit > > more? Or could you give an example? > > > I'm using the admin

Re: clean_() doesn't handle images?

2009-07-31 Thread Karen Tracey
On Fri, Jul 31, 2009 at 3:18 AM, Martje wrote: > > I don't understand, sorry :$. Do you care to explain a little bit > more? Or could you give an example? > > I'm using the admin interface btw. > You added a custom field clean method to your model definition. This

Re: clean_() doesn't handle images?

2009-07-31 Thread Martje
I don't understand, sorry :$. Do you care to explain a little bit more? Or could you give an example? I'm using the admin interface btw. On 31 jul, 01:45, Karen Tracey wrote: > On Thu, Jul 30, 2009 at 4:02 PM, Martje wrote: > > > Hey, > > > I've

Re: clean_() doesn't handle images?

2009-07-30 Thread Karen Tracey
On Thu, Jul 30, 2009 at 4:02 PM, Martje wrote: > > Hey, > > I've got the following code in my models.py: > > from django import forms > class Foto(models.Model): >omschrijving = models.CharField(max_length=100) >afbeelding =

clean_() doesn't handle images?

2009-07-30 Thread Martje
Hey, I've got the following code in my models.py: from django import forms class Foto(models.Model): omschrijving = models.CharField(max_length=100) afbeelding = models.ImageField(upload_to='media/afbeeldingen/ header/fotos') def clean_afbeelding(self): raise

Images in blog posts

2009-07-26 Thread Daniel Brown
my blog post's formatting for text and source code so I can store the blog posts body as preprocessed HTML rather than format it on the fly with JavaScript. I want to be able to be able to embed images in my blog posts but I am unsure as to how to achieve this as it would involve adding some sort

Re: Generating images.

2009-07-23 Thread Daniel Roseman
On Jul 23, 10:09 am, Goldy wrote: > Hi, > > I can generate a specific image using the following from the Django > book. > > --- > --- > from django.http import HttpResponse > > def

Generating images.

2009-07-23 Thread Goldy
Hi, I can generate a specific image using the following from the Django book. -- from django.http import HttpResponse def my_image(request): image_data = open("/path/to/my/image.png", "rb").read()

Re: Unable to show all images whose location is stored in mysql

2009-07-12 Thread djangonoob
oh, i managed to fix it. On Jul 13, 9:50 am, djangonoob <ye.eug...@gmail.com> wrote: > oh, the error i am receiving is: > Exception Value: > > 'QuerySet' object has no attribute 'image' > > On Jul 13, 9:41 am, djangonoob <ye.eug...@gmail.com> wrote: > > >

Re: Unable to show all images whose location is stored in mysql

2009-07-12 Thread djangonoob
oh, the error i am receiving is: Exception Value: 'QuerySet' object has no attribute 'image' On Jul 13, 9:41 am, djangonoob <ye.eug...@gmail.com> wrote: > Hi all. > > I have uploaded 4 images where their location is stored in mysql. > I have no problems rendering a single imag

Unable to show all images whose location is stored in mysql

2009-07-12 Thread djangonoob
Hi all. I have uploaded 4 images where their location is stored in mysql. I have no problems rendering a single image. But i am unable to show all 4 images. I am trying to use a for loop to show all 4 images from the image_upload class on my_images.html template How do i fix this problem

unable to render images in development server despite following instructions on serving static files

2009-07-12 Thread djangonoob
methods for images ( in views.y ) such as: images_to_view.image images_to_view.image.url images_to_view.image.path All three could not work. Any advice on how i can fix this problem? Best Regards. --~--~-~--~~~---~--~~ You received this message because you

Re: uploaidng media files ( such as mp3, images ) tutorial/how-to?

2009-07-11 Thread djangonoob
hey, i've managed to fix the problem successfully. thank u for your time. On Jul 11, 5:38 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jul 11, 9:11 am, djangonoob <ye.eug...@gmail.com> wrote: > > > > > Hi all, > > may i know how do i upload media f

Re: uploaidng media files ( such as mp3, images ) tutorial/how-to?

2009-07-11 Thread newlife
''django'' On 7月11日, 下午4时11分, djangonoob <ye.eug...@gmail.com> wrote: > Hi all, > may i know how do i upload media files such as mp3 files, images using > djanog? > > I understand that there is a documentation on file uploads at > :http://docs.djangoproject.com/en/dev/

Re: uploaidng media files ( such as mp3, images ) tutorial/how-to?

2009-07-11 Thread Daniel Roseman
On Jul 11, 9:11 am, djangonoob <ye.eug...@gmail.com> wrote: > Hi all, > may i know how do i upload media files such as mp3 files, images using > djanog? > > I understand that there is a documentation on file uploads at > :http://docs.djangoproject.com/en/dev/topics/http/f

uploaidng media files ( such as mp3, images ) tutorial/how-to?

2009-07-11 Thread djangonoob
Hi all, may i know how do i upload media files such as mp3 files, images using djanog? I understand that there is a documentation on file uploads at : http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ However, i do not quite understand the interaction between the models, views

Re: Multi select field with images

2009-07-08 Thread Tim Boy
il.com < > djangou...@gmail.com> > > wrote: > >> > >> I have a modelform and I want to make one of my select multiple fields > >> choices be images and not text. > >> > >> ideas/suggestions appreciated > >> > >> -- Se

Re: Multi select field with images

2009-07-08 Thread mugisha moses
il.com <djangou...@gmail.com> > wrote: >> >> I have a modelform and I want to make one of my select multiple fields >> choices be images and not text. >> >> ideas/suggestions appreciated >> >> -- Sent from my Palm Pre >> >> > > >

Re: Multi select field with images

2009-07-07 Thread ankit rai
little more explanation is required On Wed, Jul 8, 2009 at 10:31 AM, djangou...@gmail.com <djangou...@gmail.com>wrote: > I have a modelform and I want to make one of my select multiple fields > choices be images and not text. > > ideas/suggestions appreciated > >

Multi select field with images

2009-07-07 Thread djangou...@gmail.com
I have a modelform and I want to make one of my select multiple fields choices be images and not text. ideas/suggestions appreciated -- Sent from my Palm Pre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Django-profile-images

2009-06-29 Thread Leidson Germano
Hey guys, Anybody know the type of object "user" in {% profile_image user 64x64 %} Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Uploading Images

2009-06-24 Thread Daniel Roseman
On Jun 15, 4:54 am, Oleg Oltar wrote: > Hi! > > >   {{ form.as_p }} >   > > > After trying this code in browser I am getting a text field with > browse button, so when I chose file to upload, and finally click > upload I am getting 404 Error. > Not sure what I might

Re: Uploading Images

2009-06-24 Thread Avinash
; > I know that the problem probably was discussed many times already, but > > > > I really can't make it working. > > > > > I read the documentation and prepared the following code: > > > > > model: > > > > > class UserProfile(models.Model): > &

Re: Uploading Images

2009-06-24 Thread Avinash
t; > > I really can't make it working. > > > > I read the documentation and prepared the following code: > > > > model: > > > > class UserProfile(models.Model): > > >    """ > > >    User profile model, cintains a Foreign Key, which

Re: Uploading Images

2009-06-23 Thread Roboto
l, cintains a Foreign Key, which links it to the > >    user profile. > >    """ > >    about = models.TextField(blank=True) > >    user = models.ForeignKey(User, unique=True) > >    ranking = models.IntegerField(default = 1) > >    avatar = models.I

Re: trouble w/images

2009-06-20 Thread django_jedi
Thanks Antoni, for the link to your code. I'll check it out. On Jun 20, 9:33 am, Antoni Aloy <antoni.a...@gmail.com> wrote: > Look at: > > http://code.google.com/p/appfusedjango/ > > You'll find some examples of uploading images both as an application > and batch mode. &

Re: trouble w/images

2009-06-20 Thread Antoni Aloy
Look at: http://code.google.com/p/appfusedjango/ You'll find some examples of uploading images both as an application and batch mode. 2009/6/20 django_jedi <pemaq...@gmail.com>: > > Hi Folks, > > I'm having a devil of a time trying to get image uploading to work. >

trouble w/images

2009-06-20 Thread django_jedi
Hi Folks, I'm having a devil of a time trying to get image uploading to work. What I'd like to do is simply upload and image. This works with: my_object = ImageTest.objects.create() ...but if not with: my_object = ImageTest.objects.get_or_create(user_id=7, image=imagepath) Any ideas?

Re: Images not uploading in the admin tool

2009-06-17 Thread mmarshall
Well, here's what I know: I had this issue several months back and 'solved' it by disabling the in memory upload handler. I wrote a little about it at the bottom of this thread: https://forums.mediatemple.net/viewtopic.php?id=2514 But it looks like in Django 1.1beta the

Re: Images not uploading in the admin tool

2009-06-17 Thread Sean Brant
Nope, there customer support takes to long so I just gave up. Please post if you have any updates. Last I remember it might be a NFS issue on there end. Not really sure. On Jun 17, 2009, at 9:43 AM, mmarshall wrote: > > On Jun 9, 9:19 am, Sean Brant

Re: Images not uploading in the admin tool

2009-06-17 Thread mmarshall
On Jun 9, 9:19 am, Sean Brant wrote: > "Did MediaTemple change something about the file system you have > access to?  It sounds like they must have changed something so that > the file locking code that used to work for your setup is no longer > working." > > That is what

Re: Uploading Images

2009-06-14 Thread Oleg Oltar
 user = models.ForeignKey(User, unique=True) >    ranking = models.IntegerField(default = 1) >    avatar = models.ImageField(upload_to="usermedia", default = > 'images/js.jpg') > > >    def __unicode__(self): >        return u"%s profile" %sel

Uploading Images

2009-06-14 Thread Oleg Oltar
to the user profile. """ about = models.TextField(blank=True) user = models.ForeignKey(User, unique=True) ranking = models.IntegerField(default = 1) avatar = models.ImageField(upload_to="usermedia", default = 'images/js.jpg') def __unic

Re: Images not uploading in the admin tool

2009-06-09 Thread Sean Brant
"Did MediaTemple change something about the file system you have access to? It sounds like they must have changed something so that the file locking code that used to work for your setup is no longer working." That is what it sounds like to me, however they we're not much help. I'll reach back

Re: Images not uploading in the admin tool

2009-06-09 Thread Karen Tracey
On Tue, Jun 9, 2009 at 9:49 AM, Sean Brant wrote: > > I am running on a MediaTemple Django container with the SVN version of > Django. When I try and upload a image in the admin tool I get a proxy > error. The following is the part of the traceback that gets emailed to >

Images not uploading in the admin tool

2009-06-09 Thread Sean Brant
I am running on a MediaTemple Django container with the SVN version of Django. When I try and upload a image in the admin tool I get a proxy error. The following is the part of the traceback that gets emailed to me. Traceback (most recent call last): File

Re: images do not upload

2009-06-01 Thread Mike Ramirez
th to the db. Anyways, this is the solution I came up with for that problem: # model class ImageFile(models.Model): class Meta: verbose_name = "Gallery Image" verbose_name_plural = "Gallery Images" name = models.CharField(max_length=100) description = models.

Re: images do not upload

2009-06-01 Thread Bobby Roberts
Does anyone have an example of how to upload an image. I've followed the docs and it's just not working (ie no file is uploaded and the filename is not saved to the db. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: images do not upload

2009-06-01 Thread Bobby Roberts
just checking if anyone has an update on this. I've added request.FILES to my view to accept the file from the form but nothing is working and it's not even saving the file name in the db at this time. --~--~-~--~~~---~--~~ You received this message because you

images do not upload

2009-05-31 Thread Bobby Roberts
hi all.. using 1.0 w/ py 2.5 here. I have a problem with an ImageField failing to upload the images. i've checked the perms on the dir and they appear to be ok. Here are snippets of what i've got: from models.py pic = models.ImageField(upload_to='public/images/ bank_pics',blank=True

stopping missing images from silently erroring

2009-05-28 Thread Bobby Roberts
is there a way to set django so that it will show image placeholders for missing images? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: images on development server versus production server

2009-05-11 Thread Michael
On Mon, May 11, 2009 at 3:36 PM, Frutoso <muniz.alb...@gmail.com> wrote: > > So let me get this straight. > > in development enviroment: In order to get images to be displayed in a > template there is a work around that needs to be down? > > in production envi

images on development server versus production server

2009-05-11 Thread Frutoso
So let me get this straight. in development enviroment: In order to get images to be displayed in a template there is a work around that needs to be down? in production enviroment: There is not a work around? simply create an tag and enter path to image files? Please explain this in more

Re: problem rendering html images in browser

2009-05-03 Thread George Song
On 5/3/2009 7:22 PM, Mac wrote: > I've had trouble rendering images in my browser. I just get a broken > link. Any thoughts on how to fix this? I'm working with the > development server, and I've check my code carefully to insure the src=path/> to the image file is correct. If I o

problem rendering html images in browser

2009-05-03 Thread Mac
I've had trouble rendering images in my browser. I just get a broken link. Any thoughts on how to fix this? I'm working with the development server, and I've check my code carefully to insure the to the image file is correct. If I open the html template file with my browser, it does render

Re: Problem with syncr and picasa - not displaying large images, mostly

2009-04-04 Thread Bas van Oostveen
As far as i know, Google makes the large images available on demand. So unless you view these images through picasa first they are available, but at some later date or without going through picasa first they might not be. Or as another random internet comment says: "This is because ori

Re: Problem with syncr and picasa - not displaying large images, mostly

2009-04-04 Thread phoebebright
; > and easily but have one strange problem.  I can display thumbnails but > > not the full size image.  But if I copy the URL in the src tag into > > the browser, I see the image perfectly!!  How is this possible? > > > For example, this is fine:http://dunmanway.pighaswings.

Re: Problem with syncr and picasa - not displaying large images, mostly

2009-04-03 Thread Rajesh D
o > the browser, I see the image perfectly!!  How is this possible? > > For example, this is fine:http://dunmanway.pighaswings.com/gallery/3/ > > But click on any of the images and you get a 404, image not found. > > But paste this link into the browser and you should

Re: Images dose not upload , unless it the admin !

2009-04-01 Thread Hamza
got it fixed it mins ago , Thanks Alex , ( I need to slp 38 hours so far ) On Apr 2, 7:49 am, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Thu, Apr 2, 2009 at 1:38 AM, Hamza <dr.hamzam...@gmail.com> wrote: > > > Hello > > > am having a problem

Re: Images dose not upload , unless it the admin !

2009-04-01 Thread Alex Gaynor
On Thu, Apr 2, 2009 at 1:38 AM, Hamza <dr.hamzam...@gmail.com> wrote: > > Hello > > am having a problem in uploading images , which i set ImageField to > upload the image to /Photo/ directory , however it works , and > uploaded the photos as expected , but now its not

Images dose not upload , unless it the admin !

2009-04-01 Thread Hamza
Hello am having a problem in uploading images , which i set ImageField to upload the image to /Photo/ directory , however it works , and uploaded the photos as expected , but now its not working : and display a message : This field is required. , when i submit a photo in it , it repeat

Re: Django wont display images on my CSS file

2009-03-28 Thread Nathan Reynolds
On Sat, Mar 28, 2009 at 7:17 AM, Ayaz Ahmed Khan wrote: > Furthermore, it stipulates that if the given URL path is > relative, the absolute path is derived at by combining that relative > path with a base URL which, for CSS style sheets, is the base URL for > the style sheet.

Re: Django wont display images on my CSS file

2009-03-28 Thread Ayaz Ahmed Khan
I have worked on before, where style sheets were kept within /static/css/ and the accompanying images in /static/images, specified URLs for images within the CSS style sheets via URLs of the form `/static/images/file.ext`, and found them to seamlessly work across a diverse set of browsers. [0] http:

Re: Django wont display images on my CSS file

2009-03-27 Thread Dougal Matthews
Gath <pgath...@gmail.com> wrote: >> Guys, >> >> Am having a problem in displaying images in my CSS file. >> >> I have a css file with the following class >> >> .header >> { >>  margin-left: auto; >>  bla bla >>  bla

Re: Django wont display images on my CSS file

2009-03-27 Thread Brian Neal
On Mar 27, 7:33 am, Gath <pgath...@gmail.com> wrote: > Guys, > > Am having a problem in displaying images in my CSS file. > > I have a css file with the following class > > .header > { >  margin-left: auto; >  bla bla >  bla bla >  ... > back

Re: Django wont display images on my CSS file

2009-03-27 Thread Sean Brant
In most of my projects I have a img, css, js folder. In my css file I reference images like this url(../img/path/to/img.jpg) in my css files. The ../ basically says start the path back one directory. Not sure if this is what's causing your problem. On Mar 27, 8:10 am, Martin Ostrovsky

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
:33 am, Gath <pgath...@gmail.com> wrote: > > > Guys, > > > Am having a problem in displaying images in my CSS file. > > > I have a css file with the following class > > > .header > > { > >  margin-left: auto; > >  bla bla > >  bla

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
> Am having a problem in displaying images in my CSS file. > > I have a css file with the following class > > .header > { >  margin-left: auto; >  bla bla >  bla bla >  ... > background: url(/site_media/header_background.gif) no-repeat top left; > > } >

Django wont display images on my CSS file

2009-03-27 Thread Gath
Guys, Am having a problem in displaying images in my CSS file. I have a css file with the following class .header { margin-left: auto; bla bla bla bla ... background: url(/site_media/header_background.gif) no-repeat top left; } When i execute the template with this css, no image

Re: bookmarks app with images

2009-02-17 Thread Tonu Mikk
helps at least a little. > > > On Feb 13, 9:23 am, Tonu Mikk <tm...@umn.edu> wrote: > >> Hello, I am having trouble writing a view to upload images. I am >> creating a bookmarks application with Django 1.02 that would have a >> screenshot for each bookmark. I ex

Re: mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-17 Thread Graham Dumpleton
ration) > > > workspace = os.path.dirname(project) > > > > sys.path.append(workspace) > > > sys.path.append('c:\\my_wsgi') > > > > os.environ['DJANGO_SETTINGS_MODULE'] = 'blog.settings' &

Re: mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-16 Thread Angel Cruz
os.path.dirname(apache_configuration) > > workspace = os.path.dirname(project) > > > > sys.path.append(workspace) > > sys.path.append('c:\\my_wsgi') > > > > os.environ['DJANGO_SETTINGS_MODULE'] = 'blog.settings' > > import django.core.handlers.wsgi > &

Re: mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-15 Thread Graham Dumpleton
core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > > settings.py: > > . > . > . > # Absolute path to the directory that holds media. > # Example: "/home/media/media.lawrence.com/" > MEDIA_ROOT = '

mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-15 Thread MrBodjangles
from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com;, "http://example.com/media/; MEDIA_URL = '' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing s

Re: bookmarks app with images

2009-02-12 Thread Louis Sayers
pics/forms/modelforms/#topics-forms-modelforms I hope this helps at least a little. On Feb 13, 9:23 am, Tonu Mikk <tm...@umn.edu> wrote: > Hello, I am having trouble writing a view to upload images. I am > creating a bookmarks application with Django 1.02 that would have a > screens

bookmarks app with images

2009-02-12 Thread Tonu Mikk
Hello, I am having trouble writing a view to upload images. I am creating a bookmarks application with Django 1.02 that would have a screenshot for each bookmark. I extended the model in this way to include the images: class Photo(models.Model): title = models.CharField(max_length=50

Serving Images through apache without a virtual host

2009-02-12 Thread jacoberg2
I have been looking around at the forum and how people have been serving their images, but i can't seem to find exactly what i need. I am trying to create a site that produces a slideshow of graph plots in the form of images, so there is a very high volume of pictures that need to be served. So

Re: Custom widget for images is deleting them

2009-02-11 Thread phoebebright
.py > > A    9765/setup.cfg > >  U   9765 > > Checked out revision 9824. > > > And dates are Feb 2 > > > Any suggestions? > > > On Feb 11, 11:32 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > On Wed, Feb 11, 2009 at 6:30 PM, phoebebrig

Re: Custom widget for images is deleting them

2009-02-11 Thread Alex Gaynor
And dates are Feb 2 > > > Any suggestions? > > On Feb 11, 11:32 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > On Wed, Feb 11, 2009 at 6:30 PM, phoebebright <phoebebright...@gmail.com > >wrote: > > > > > > > > > > > &g

Re: Custom widget for images is deleting them

2009-02-11 Thread phoebebright
out revision 9824. And dates are Feb 2 Any suggestions? On Feb 11, 11:32 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Feb 11, 2009 at 6:30 PM, phoebebright > <phoebebright...@gmail.com>wrote: > > > > > > > I thought I had a custom widget

Re: Custom widget for images is deleting them

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 6:30 PM, phoebebright <phoebebright...@gmail.com>wrote: > > I thought I had a custom widget which would allow images to be deleted > working and was dead chuffed (http://groups.google.com/group/django- > users/browse_thread/thread/ebf646208fa8880f/c22f8

Custom widget for images is deleting them

2009-02-11 Thread phoebebright
I thought I had a custom widget which would allow images to be deleted working and was dead chuffed (http://groups.google.com/group/django- users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef? lnk=gst=admin+image#c22f87e85b5d78ef) but unfortunately it doesn't work. I have spent

Re: trouble with yesno to generate images

2009-01-27 Thread Steve Holden
Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > > {% autoescape off %} > {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} > {% endautoescape %} > Neat, but I think you need to correct your first alt

Re: trouble with yesno to generate images

2009-01-27 Thread Almost George
On Jan 26, 4:52 pm, Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > >         {% autoescape off %} >         {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} >         {% endautoescape %} > > Margie

Re: trouble with yesno to generate images

2009-01-26 Thread Malcolm Tredinnick
On Mon, 2009-01-26 at 14:52 -0800, Margie wrote: > Thanks very much, autoescape did the trick, here is the result for > anyone interested: > > {% autoescape off %} > {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }} > {% endautoescape %} Hmmm ... then that's

Re: trouble with yesno to generate images

2009-01-26 Thread Margie
Thanks very much, autoescape did the trick, here is the result for anyone interested: {% autoescape off %} {{ task.done|yesno:"," }} {% endautoescape %} Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: trouble with yesno to generate images

2009-01-26 Thread Almost George
On Jan 26, 3:58 pm, Almost George wrote: > On Jan 26, 3:39 pm, Margie wrote: > > > > > Hi, > > > I am trying to generate a symbol for true and false in my table, but > > am having problems with the escaping of quotes and also with > >

Re: trouble with yesno to generate images

2009-01-26 Thread Almost George
On Jan 26, 3:39 pm, Margie wrote: > Hi, > > I am trying to generate a symbol for true and false in my table, but > am having problems with the escaping of quotes and also with > generating the < > tags.  If I use the code below: >        {{ task.done|yesno:" \" />,"

Re: trouble with yesno to generate images

2009-01-26 Thread Malinka Rellikwodahs
This is just a quick guess without really knowing anything about the yesno filter, but I would try single quotes inside the html in your yesno filter eg On Mon, Jan 26, 2009 at 16:39, Margie wrote: > > Hi, > > I am trying to generate a symbol for true and false in my

<    1   2   3   4   5   6   7   8   9   10   >