Re: Getting images to appear in html using Django.

2012-07-09 Thread Jak
I figured it out. I put the Media folder on the same level as a the mysite folder and now it seems to work. I think it was a django noob error. MEDIA_ROOT ='/Users/Jak/projects/fap/media/' MEDIA_URL = '/media/' TEMPLATE_DIRS = ( '/Users/Jak/projects/fap/mysite/templates', urls.py (r'^media

Re: Getting images to appear in html using Django.

2012-07-09 Thread Rohan
Hi Jak, I would suggest removing the "," after MEDIA_ROOT in your settings file if it indeed is there. Could you also be a little more specific about the problem. Is the rest of the page loading fine? and if it is, do you see /media/ being pre-pended to your file name when you see the source o

Re: Getting images to appear in html using Django.

2012-07-08 Thread Jak
Update: I'm now using requestcontext in my view. my new view is from django.http import HttpResponse from django.shortcuts import render_to_response from django.template.loader import get_template from django.template import RequestContext def homepage(request): return render_to_response ('i

Getting images to appear in html using Django.

2012-07-08 Thread Jak
Hello All, I am new to Django and I'm trying to create a simple website. I am trying to get an jpg to appear in the base template but I cant get it to show up. In setting.py MEDIA_ROOT = '/Users/Jak/projects/fap/mysite/media', MEDIA_URL = '/media/' urls.py (r'^media/(?P.*)$', 'django.views.stati