On Tue, Oct 27, 2009 at 5:57 PM, bax...@gretschpages.com <
mail.bax...@gmail.com> 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 django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to