updates so project works via both runserver and mod_wsgi