Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread koenb

There already is a ticket: #4783. Just needs volunteers to do the
writing...

Koen

On 3 aug, 10:41, james_027 <[EMAIL PROTECTED]> wrote:
> hi,
>
> On Aug 3, 4:32 pm, koenb <[EMAIL PROTECTED]> wrote:
>
> > My guess is you are interfering with your admin_media (look at the
> > admin_media_prefix setting).
> > Try using something like r'^sitemedia/... and src="/sitemedia/...".
>
> Thanks koen, that did it. I think it could be nice if it was mention
> on the documentation.
>
> cheers,
> james


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread james_027

hi Kai,


> If you do not use it, no.
>

If I use it, how does it affect then?

thanks
james


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread james_027

hi,

On Aug 3, 4:32 pm, koenb <[EMAIL PROTECTED]> wrote:
> My guess is you are interfering with your admin_media (look at the
> admin_media_prefix setting).
> Try using something like r'^sitemedia/... and src="/sitemedia/...".
>

Thanks koen, that did it. I think it could be nice if it was mention
on the documentation.

cheers,
james



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread koenb

My guess is you are interfering with your admin_media (look at the
admin_media_prefix setting).
Try using something like r'^sitemedia/... and src="/sitemedia/...".

Koen

On 3 aug, 09:16, james_027 <[EMAIL PROTECTED]> wrote:
> hi,
>
> I already did the
>
> (r'^media/(?P.*)$', 'django.views.static.serve',
> {'document_root':'d:/private/james/documents/django/ksk/media'}),
>
> in my urls.py
>
> and in my template i have something like this
>
> 
>
> but why is it the image still don't appear?
>
> Thanks
> james


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread Kai Kuehne

Hi,

On 8/3/07, james_027 <[EMAIL PROTECTED]> wrote:
> does it affect the django.views.static.serve?

If you do not use it, no.

Greetings
Kai

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: help serving static files (css, images, pdf, js)

2007-08-03 Thread james_027

hi,

are this settings used when running under development mode?

MEDIA_ROOT
MEDIA_URL

does it affect the django.views.static.serve?

thanks
james


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



help serving static files (css, images, pdf, js)

2007-08-03 Thread james_027

hi,

I already did the

(r'^media/(?P.*)$', 'django.views.static.serve',
{'document_root':'d:/private/james/documents/django/ksk/media'}),

in my urls.py

and in my template i have something like this



but why is it the image still don't appear?

Thanks
james


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---