Skip to content

Instantly share code, notes, and snippets.

@drscream
Created May 15, 2016 22:38
Show Gist options
  • Save drscream/2fc0f6f7a573d008b6e55ab13df27b31 to your computer and use it in GitHub Desktop.
Save drscream/2fc0f6f7a573d008b6e55ab13df27b31 to your computer and use it in GitHub Desktop.
++ ./manage.py update_vhosts
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/opt/kumquat/kumquat/management/commands/update_vhosts.py", line 79, in handle
update_vhosts()
File "/opt/kumquat/kumquat/management/commands/update_vhosts.py", line 69, in update_vhosts
write_vhost_config()
File "/opt/kumquat/kumquat/management/commands/update_vhosts.py", line 28, in write_vhost_config
config += render_to_string('web/vhost.conf', context)
File "/opt/local/lib/python2.7/site-packages/django/template/loader.py", line 97, in render_to_string
return template.render(context, request)
File "/opt/local/lib/python2.7/site-packages/django/template/backends/django.py", line 95, in render
return self.template.render(context)
File "/opt/local/lib/python2.7/site-packages/django/template/base.py", line 206, in render
return self._render(context)
File "/opt/local/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
return self.nodelist.render(context)
File "/opt/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
bit = node.render_annotated(context)
File "/opt/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
return self.render(context)
File "/opt/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 167, in render
values = list(values)
TypeError: 'RelatedManager' object is not iterable
+ exit_handler 'received exit status' 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment