On Tue, Oct 27, 2009 at 5:57 PM, [email protected] <
[email protected]> wrote:

>
> Not sure what's going on, but my images aren't uploading.
>
> I'm using the built-in dev server.
>
> I'm on OS X.
>
> I've tried a lot of different things for MEDIA_ROOT. The most recent
> is:
> MEDIA_ROOT = '/Users/<myname>/Sites/django-media/'
>
> and
> MEDIA_URL = '/media/'
>
>
Have you changed ADMIN_MEDIA_PREFIX (
http://docs.djangoproject.com/en/dev/ref/settings/#admin-media-prefix) from
its default of the same thing?


>

For now, while it's just in test, I have this in URLS.py:
>
>    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
>        {'document_root': '/Users/tbaxter/Sites/django-media/ink/',
> 'show_indexes': True}),
>
>
This won't have any effect if ADMIN_MEDIA_PREFIX is also /media/.  The
development server special-cases requests for admin media (that is, any path
that starts with ADMIN_MEDIA_PREFIX) and they don't go through normal url
resolution.

It sounds like your images are uploading, you just can't see them on the
site after you've uploaded them because your requests for them are being
routed to the admin media server, which can't find them where it looks (in
the Django source tree).

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to