Differences between devserver and Apache

Running with ./manage.py devserver is very handy, but things may not 'just work' when you move the site to Apache. (or other servers.)

  • devserver's current dir may not be the same as apache's. so if your view code references files with relative paths you will have trouble.
  • some request.META keys are different, e.g. on the devserver the Content-Type is in request.META['CONTENT_TYPE'] while on mod_python that key exists but the value is always None and the actual value is in request.META['HTTP_CONTENT_TYPE']

Last modified 7 years ago Last modified on 02/15/10 07:31:35
Back to Top