2006/1/4, iGL <[EMAIL PROTECTED]>:
>
> on windows, MEDIA_URL and MEDIA_ROOT, did not quit help; I haven't
> understood why...
MEDIA_URL is used for file or image upload.
>
> all I did then was to put:
>
> in urls something like
> r'^m/(?P.*)$', 'media', {'document_root':
> 'D:\\django\\testapp\\m
on windows, MEDIA_URL and MEDIA_ROOT, did not quit help; I haven't
understood why...
all I did then was to put:
in urls something like
r'^m/(?P.*)$', 'media', {'document_root':
'D:\\django\\testapp\\media\\'}),
and in views
from django.views.static import serve
media = serve
and in the base
On Птн, 2005-12-30 at 20:42 +, scum wrote:
> I cannot figure out the `official` place to put images, stylesheets,
> and javascripts and the process to access them. Can someone explain
> their method of doing this.
I'm just root-linking all that stuff to '/media/css/base.css'(js, img, etc.)
an
On 12/30/05, scum <[EMAIL PROTECTED]> wrote:
> I cannot figure out the `official` place to put images, stylesheets,
> and javascripts and the process to access them. Can someone explain
> their method of doing this.
Except for the location you define with MEDIA_URL and MEDIA_ROOT,
there is no "o
scum wrote:
I cannot figure out the `official` place to put images, stylesheets,
and javascripts and the process to access them. Can someone explain
their method of doing this.
As far as I know there is no 'official' place. But I think the good idea
is to store CSS and JS with your project
I cannot figure out the `official` place to put images, stylesheets,
and javascripts and the process to access them. Can someone explain
their method of doing this.
I was thinking of making a CSS_URL in the settings.py file and then
calling {{CSS_URL}}/styles.css, but I can't manage that because
6 matches
Mail list logo