You know, its really sad to see the disdain like this thrust upon a
newbie. We all know you are superior, and that your understanding of
Django and python is massive, and we bow to your intellect, but there
are hundreds if not thousands of pages of reading, and we newbs are
sorry if we don't
On Jan 12, 6:45 pm, Brian Neal wrote:
> On Jan 12, 4:58 pm, jazztpt wrote:
> [...]
>
> > Brian, you understood me perfectly -- when I was asking about a tag, I
> > was simply asking if django used a shortcut the way rails does, and
> > {{MEDIA_URL}} is
On Jan 12, 4:58 pm, jazztpt wrote:
[...]
>
> Brian, you understood me perfectly -- when I was asking about a tag, I
> was simply asking if django used a shortcut the way rails does, and
> {{MEDIA_URL}} is what I was looking for. Duh. :P
>
> However, {{MEDIA_URL}}
Thanks for the great help.
Daniel, good eye - I copied & pasted without looking too carefully,
and was trying to access the folder one level up. Once I changed
that, I can now access the file as David suggested, directly via the
url: http://localhost:8000/site_media/autodiag_title.jpg
Brian,
On Jan 12, 8:59 pm, jazztpt wrote:
> Nope, that's not the problem. I had read that page, and another that
> suggested a slightly different syntax for the urlpatterns
> (fromhttp://rob.cogit8.org/blog). Sorry that I forgot to mention that I
> had already put Rob's
On Jan 12, 2:59 pm, jazztpt wrote:
>
> That page in the docs doesn't say anything about how to call this from
> the view. Are these files automatically accessed by an tag? I
> didn't see any special image tag (like the image_tag in rails) in the
> template tags or in
On Mon, Jan 12, 2009 at 3:59 PM, jazztpt wrote:
>
> Nope, that's not the problem. I had read that page, and another that
> suggested a slightly different syntax for the urlpatterns (from
> http://rob.cogit8.org/blog). Sorry that I forgot to mention that I
> had already
Nope, that's not the problem. I had read that page, and another that
suggested a slightly different syntax for the urlpatterns (from
http://rob.cogit8.org/blog). Sorry that I forgot to mention that I
had already put Rob's version in my code -- I wasn't sure if it was
necessary simply to show
On Jan 12, 6:35 pm, jazztpt wrote:
> I'm building my first django app and having a few problems in my dev
> environment. I have a couple of images that I want to use in my
> base.html template. I have tried various configurations, but none of
> my images show up. I've
I'm building my first django app and having a few problems in my dev
environment. I have a couple of images that I want to use in my
base.html template. I have tried various configurations, but none of
my images show up. I've tried putting the images in /media, in /media/
img, and in the main
10 matches
Mail list logo