Skip to content

Instantly share code, notes, and snippets.

@betodealmeida
Created January 22, 2013 17:13
Show Gist options
  • Save betodealmeida/4596366 to your computer and use it in GitHub Desktop.
Save betodealmeida/4596366 to your computer and use it in GitHub Desktop.
from pydap.handlers.lib import get_handler
from django_wsgi import django_view
filepath = XXX # get this from the model somehow
handler = get_handler(filepath) # this is a WSGI app
view = django_view(handler)
return view(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment