I managed to get this working properly. Thanks for all the help.

On Apr 16, 3:00 am, "Rishabh Manocha" <[EMAIL PROTECTED]> wrote:
> Did you take a look 
> athttp://www.djangoproject.com/documentation/static_files/#how-to-do-it.
> If you are using the dev server, this is the way to do it.
>
> Hence, you should not be using anything like (<img
> src="http://127.0.0.1:8000/detail/...) in your view.
>
> R
>
> On Wed, Apr 16, 2008 at 4:37 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >  I will post my code up here, it is just a small classroom project that
> >  we are working on so I am not super concerned about reliability or
> >  speed.
> >  http://dpaste.com/45051/
> >  Hopefully it is just something that I am missing or am being a
> >  complete noobstick about.  Thanks for all of your help it is most
> >  appreciated.  Static is the name of my image directory for anyone who
> >  wanted to know.
>
> >  On Apr 15, 3:28 pm, "Erik Vorhes" <[EMAIL PROTECTED]> wrote:
> >  > In production environments, you need to use something like Apache or
> >  > Lighttpd (sp?) to serve media--it's not something you should be doing
> >  > directly through Django.
>
> >  > Check the URL for your image and compare it to MEDIA_URL in your
> >  > settings.py file (plus anything you're adding through
> >  > upload_to='some/path'.
>
> >  > EV
>
> > > On Tue, Apr 15, 2008 at 2:19 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
> > > wrote:
>
> >  > >  The error I get is the white box with the red X which means it can't
> >  > >  find the image.
>
> >  > >  On Apr 15, 1:39 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> >  > >  > On Apr 15, 12:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> >  > >  > > I have searched high and low to make it possible for me to 
> > display an
> >  > >  > > image via Django in an html template and it fail bombs so hard.
>
> >  > >  > Can you put that in developer-friendly terms? :)
>
> >  > >  > - What error do you get? Is here an error trace you can share?
> >  > >  > - What's your template code excerpt that's supposed to create the 
> > HMTL
> >  > >  > img tag?
>
> >  > >  > -Rajesh D
>
> >  > --
> >  > portfolio:http://textivism.com/
> >  > blog:http://erikanderica.org/erik/
--~--~---------~--~----~------------~-------~--~----~
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