Code


Version 9 (modified by Carl Karsten <carl@…>, 6 years ago) (diff)

--

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 relitive 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']