moved wsgi.py to template