Skip to content

Instantly share code, notes, and snippets.

@mechanicalgirl
Created June 15, 2016 21:05
Show Gist options
  • Save mechanicalgirl/d3cbaa233b05abfb757132086e84563d to your computer and use it in GitHub Desktop.
Save mechanicalgirl/d3cbaa233b05abfb757132086e84563d to your computer and use it in GitHub Desktop.
(venv)[ec2-user@ip-172-30-4-121 ~]$ /opt/cmgd/venv/src/weathervane/weather/manage.py weatherctl fetch all
Traceback (most recent call last):
File "/opt/cmgd/venv/src/weathervane/weather/manage.py", line 13, in <module>
execute_from_command_line(sys.argv)
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 263, in fetch_command
app_name = get_commands()[subcommand]
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 109, in get_commands
apps = settings.INSTALLED_APPS
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
self._setup(name)
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in _setup
self._wrapped = Settings(settings_module)
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/opt/cmgd/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/cmgd/venv/src/weathervane/weather/weather/settings.py", line 113, in <module>
data = results['data']
TypeError: 'NoneType' object has no attribute '__getitem__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment