Re: How to display the images in the template page under the django development server

2008-07-14 Thread Karen Tracey
On Mon, Jul 14, 2008 at 6:06 AM, rui <[EMAIL PROTECTED]> wrote: > Hi Eric, > > There is a bit about it in this excerpt: > > """ > MEDIA_ROOT > > Default: '' (Empty string) > > Absolute path to the directory that holds media for this installation. > Example: "/home/media/media.lawrence.com/" See al

Re: How to display the images in the template page under the django development server

2008-07-14 Thread rui
Hi Eric, There is a bit about it in this excerpt: """ MEDIA_ROOT Default: '' (Empty string) Absolute path to the directory that holds media for this installation. Example: "/home/media/media.lawrence.com/" See also MEDIA_URL. MEDIA_URL Default: '' (Empty string) URL that handles the media ser

Re: How to display the images in the template page under the django development server

2008-07-13 Thread Eric Liu
Hi all. Thank you all very much. Now I know what's wrong with me.here is the finally result of mine. In the file url.py,just add following code: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': 'D:/test/mysite2/mysite_media'}), and don't need change the seting in the se

Re: How to display the images in the template page under the django development server

2008-07-11 Thread Arien
On Fri, Jul 11, 2008 at 4:37 AM, Eric Liu <[EMAIL PROTECTED]> wrote: > When I create a app and try to show a image in the the html ,I ran > into trouble that is the images can't be shown in the page.following > is my page code: > > [...] > > [...] In HTML, the end tag of the img element must be

Re: How to display the images in the template page under the django development server

2008-07-11 Thread Kenneth Gonsalves
On 11-Jul-08, at 3:07 PM, Eric Liu wrote: > http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

RE: How to display the images in the template page under the django development server

2008-07-11 Thread Emily Rodgers
/. Hope this helps, Em _ From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Liu Sent: 11 July 2008 10:37 To: django-users@googlegroups.com Subject: How to display the images in the template page under the django development server Hi all I have a lot

How to display the images in the template page under the django development server

2008-07-11 Thread Eric Liu
Hi all I have a lot of green in Django.When I create a app and try to show a image in the the html ,I ran into trouble that is the images can't be shown in the page.following is my page code: {%block title%}{%endblock%} My helpful timestamp site: {%block content%}{%endblock%} {% block foo