Thanks! That's really helpful. So, in a production environment, you'd set up the MEDIA_ROOT to be somewhere within the generally accessible web-root, right?
-E On Dec 2, 3:28 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 2 déc, 08:58, Eric <[EMAIL PROTECTED]> wrote: > > > Hi! > > > I'm new at Django, but I've been having relatively good luck. I've > > recently hit a big of a wall using FileField. I have set up the paths > > correctly enough that I can upload files to /my_site/uploads/photos, > > but when I view the model containing the FileField in the admin > > interface, it shows the URL of the photo > > as:http://localhost:8000/uploads/photos/flier.jpg > > > Clicking on this link, of course, produces a 404 error. > > > Is there an accepted way to set up the routes to make this /uploads/ > > directory publicly accessible? > > A couple links to the > FineManual:http://docs.djangoproject.com/en/dev/howto/static-files/http://docs.djangoproject.com/en/dev/ref/settings/#media-roothttp://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-c... > > HTH > > > Thanks for your time. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---