I typically add a config to apache to ignore my media folder and not handle it with python so that requests to /media/.* all go straight to the webserver and don't go via django. I typically have something like this sitting in my conf's:
<Location /media> SetHandler None Options -Indexes </Location> I'd not bother doing that for the dev environment though unless you've got your server setup already and its not much hassle. jaymz On Jul 14, 3:33 pm, reduxdj <patricklemi...@gmail.com> wrote: > I want to use ImageField for users to upload static content and I need > a little advice from a some django pros on how to do this in a dev > enviornment. I notice the disclaimer that django dev server should not > used to serve static content, or it shouldn't be. So... > > What's the best practice for this then? > Right now, I love the simplicity of the django dev webserver, should i > switch the devserver to nginx? > Does that have the ability to know when i make a change to a python > file without a server restart necessary? > Is there anything else I should know. > > Thanks so much, > Patrick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.