Re: Please help me use "views.django.views.static"

2007-01-14 Thread rzimerman
That solved the problem completely. Thank you, Honza! Honza Král wrote: How does your ENTIRE urls.py look? it looks like you supplied a prefix (mysite.www) to the patterns function, so that it is prepended to every view name you put there... remove it and it should be OK On 1/14/07,

Re: Please help me use "views.django.views.static"

2007-01-13 Thread Brian Beck
Hi, I make using static.serve a little cleaner like so: In settings.py: STATIC_OPTIONS = {'document_root': MEDIA_ROOT, 'show_indexes': True} In urls.py: from django.conf import settings ... (r'^static/(?P.*)$', 'django.views.static.serve', settings.STATIC_OPTIONS), (change 'static/' above to

Re: Please help me use "views.django.views.static"

2007-01-13 Thread Honza Král
How does your ENTIRE urls.py look? it looks like you supplied a prefix (mysite.www) to the patterns function, so that it is prepended to every view name you put there... remove it and it should be OK On 1/14/07, rzimerman <[EMAIL PROTECTED]> wrote: I want the Django development web server to

Please help me use "views.django.views.static"

2007-01-13 Thread rzimerman
I want the Django development web server to serve the images located in '/var/www/images', so I added the following line to my urls.py file: (r'^images/(?P.*)$', 'django.views.static.serve', {'document_root': '/var/www/images'}), However, when I got to view the image, I get the following