On Oct 27, 8:39 pm, Karen Tracey <[email protected]> wrote:
> 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.
>
>
> Have you changed ADMIN_MEDIA_PREFIX
> (http://docs.djangoproject.com/en/dev/ref/settings/#admin-media-prefix) from
> its default of the same thing?
>
ADMIN_MEDIA is set to "admin_media", because I like the regular media
to be at /media.
>
>
> 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.
But it's not
>
> 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).
No, it's not that I can't see them on the site. They're not in the
filesystem. They're not there, anywhere, as far as I can see.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---