Skip to content

Instantly share code, notes, and snippets.

@bjinwright
Created August 2, 2016 17:31
Show Gist options
  • Save bjinwright/836afbaa3e38a160ad57349a0ed11c83 to your computer and use it in GitHub Desktop.
Save bjinwright/836afbaa3e38a160ad57349a0ed11c83 to your computer and use it in GitHub Desktop.
ImportError
Import by filename is not supported.: ImportError
Traceback (most recent call last):
File "/var/task/handler.py", line 302, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 110, in lambda_handler
return cls().handler(event, context)
File "/var/task/handler.py", line 159, in handler
app_function = get_django_wsgi(self.settings.DJANGO_SETTINGS)
File "/var/task/django_zappa_app.py", line 17, in get_django_wsgi
django.setup()
File "/tmp/pip-build-3vTDuT/Django/django/__init__.py", line 17, in setup
File "/tmp/pip-build-3vTDuT/Django/django/conf/__init__.py", line 55, in __getattr__
File "/tmp/pip-build-3vTDuT/Django/django/conf/__init__.py", line 43, in _setup
File "/tmp/pip-build-3vTDuT/Django/django/conf/__init__.py", line 99, in __init__
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: Import by filename is not supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment