python - ImportError at / No module named response with django appengine -
i trying run django project appengine . running on localhost. when tried upload appspot.com giving me following error
importerror @ / no module named response
here traceback.
views.py
from django.http.response import httpresponse def home(request): return httpresponse("hello world")
app.yaml
application: demoapptotest version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: main.application libraries: - name: django version: latest - name: pil version: latest env_variables: django_settings_module: 'app1.settings'
you should from django.http import httpresponse
.
Comments
Post a Comment