Not sure if I understood the question, but here goes: Are you using the devserver on production? If you are, stop!
It's perfectly fine to serve the static media via the dev server in a *DEV* environment. Here's some information: http://docs.djangoproject.com/en/dev/howto/static-files/#limiting-use-to-debug-true You will however encounter problems since your users won't upload their content to your DEV env, they will upload it to the production environment. You could either use something like rsync to sync the folders to your harddrive from the server. Another approach is to use something like this: http://github.com/sunlightlabs/django-mediasync nginx is great for serving static media but might add some complexity to your server setup, apache+mod_wsgi is the recommended choice by the documentation, and works really well for sites that dsn't receive huge amount of traffic. You would just specify a directory to use for static content in your apache config and make mod_wsgi handle everything else. The django and mod_wsgi docs have great articles on this. Good luck with your server setup. Best, Anders Petersson On Jul 14, 4: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.