Hi,
> MEDIA_URL = 'D:/workspace/isiscore/media/
That's not a URL. A URL looks like 'http://myserver/' or '/media/'
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this messa
Maybe an example will clear it up. Its pretty much taken from the
documentation. I leave the ADMIN_MEDIA_PREFIX as the default value.
# settings.py
MEDIA_ROOT = '/home/django/django-projects//media/'
MEDIA_URL = '/site_media/'
# urls.py
from django conf import settings
if settings.DEBUG:
ur
How is the MEDIA_URL reflected in my settings? If MEDIA_URL is '/
site_media/', should my urls.py then be r'^site_media/$'? I fail to
understand the role it plays in all this.
Thanks again for your replies.
Kind regards,
Robert
On Oct 9, 3:35 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> C
Correct, they can't be the same. That's why I put /site_media/ to serve
your projects media files in my reply. You can make them whatever you want,
but they have to be different.
keith
On Thu, Oct 9, 2008 at 4:36 PM, Robert
<[EMAIL PROTECTED]>wrote:
>
> Thanks for your reply, Keith.
>
> I hav
Thanks for your reply, Keith.
I have made your suggested changes, but unfortunately I still cannot
display images.
On a whim, I put an image file in C:\Python25\Lib\site-packages\django/
contrib/admin/media\img02.jpg and used the following code in my
template:
wrote:
> you need to change these
you need to change these:
#from settings.py
MEDIA_ROOT = 'D:/workspace/isiscore/media/'
MEDIA_URL = '/site_media/'
ADMIN_MEDIA_PREFIX = '/media/'
#from urls.py
from django.conf import settings
(r'^media/(?P.*)$', 'django.views.static.serve',
{ 'document_root': settings.MEDIA_URL, 'show_indexes':
I'm hoping I've just missed a simple switch, but I'm trying to get
some simple CSS and images set up using the development server.
First, my setup:
from urls.py
(r'^media/(?P.*)$', 'django.views.static.serve',
{ 'document_root': 'D:/workspace/isiscore/media', 'show_indexes':
True, }),
from sett
7 matches
Mail list logo