Hi Jacob, On Sep 22, 3:51 am, jacoberg2 <[EMAIL PROTECTED]> wrote: > Hey quick question, what exactly is the media_url setting and what do > you have to do to get the right url?
>From http://www.djangoproject.com/documentation/settings/#media-url: MEDIA_URL Default: '' (Empty string) URL that handles the media served from MEDIA_ROOT. Example: "http:// media.lawrence.com" Note that this should have a trailing slash if it has a path component. Good: "http://www.example.com/static/" Bad: "http://www.example.com/ static" Not sure exactly what you mean by getting the right url - it should point somewhere external to django - ie. a separate webserver - there's no magic there. If you've got apache running on your development machine, then this can just be http://localhost/mydjangoprojectmedia/ as long as you've then got a directory called mydjangoprojectmedia in the right spot (/var/www/ on Ubuntu). If in a template you then have: <img src="{{ MEDIA_URL }}images/my_image.jpg" /> everything should work, even if you later deploy your app - all you'll need to do is change the MEDIA_URL setting. -Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---