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/'
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}),
I've checked permissions on every directory.
When I attempt to upload I get no error.
I see the filename in the admin.
If I click it, I 404. Also, a slash is appended.
If I back up to the /media/img/ directory, nothing.
I'm sure I've just got something configured wrong. I've never used
django on a local machine before, so the paths and such are a bit
different than I'm used to.
Anyone see where I've gone wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---