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,
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
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
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
4 matches
Mail list logo