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
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
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
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
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
Try doing
Ideally you want your media url to be available in all of your templates (so
you can do in your templates).
To do this kind of thing you can set up a context processor. There is a good
example here:
http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-proces
6 matches
Mail list logo