On Wed, Jul 2, 2008 at 12:21 PM, Molly <[EMAIL PROTECTED]> wrote:
>
> I added ImageField to my models like this:
>
> ====================================================================
> photo = models.ImageField("Photograph", upload_to='media/images',
> blank=True,null=True)
> ====================================================================
>
> I "import Image" in my imports, and in my models I:
>
> ====================================================================
> from django.db.models import ImageField
> ====================================================================
>
> Everything works.. it shows up on my site, I upload it and it is
> there. When I open the picture, i get this error:
>
> ====================================================================
> error: (10061, 'Connection refused')
> ====================================================================
>
> I would appreciate any help!
>
> Thank you!!

Molly,

Are you doing this in your dev. environment with the built in
webserver or on a production setup?  Just wondering about the
connection error, never heard of it.  Is that a mod_python error?
Maybe you can post the entire stack trace if you have it at
http://dpaste.com/ ?

If you are serving static media, you should be able to copy an image
in your media dir and manually type in the URL to get it.

Also  have a look here, many people use this type of setup in their
dev environment to serve static media using django.views.static.serve.

http://www.djangoproject.com/documentation/static_files/#limiting-use-to-debug-true

--
Milan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to