Skip to content

Instantly share code, notes, and snippets.

@antoviaque
Created June 3, 2015 07:38
Show Gist options
  • Select an option

  • Save antoviaque/9b7a3cde876f3aad4c3b to your computer and use it in GitHub Desktop.

Select an option

Save antoviaque/9b7a3cde876f3aad4c3b to your computer and use it in GitHub Desktop.
Internal Server Error: /assignment/SellSlavery/8/review
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/home/ubuntu/dalite-ng/peerinst/views.py", line 77, in dispatch
return super(QuestionMixin, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 205, in get
form = self.get_form()
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 74, in get_form
return form_class(**self.get_form_kwargs())
File "/home/ubuntu/dalite-ng/peerinst/views.py", line 225, in get_form_kwargs
self.question,
File "/home/ubuntu/dalite-ng/peerinst/rationale_choice.py", line 51, in simple
random_rationale = other_rationales[rng.randrange(other_rationales.count())]
File "/usr/lib/python2.7/random.py", line 191, in randrange
raise ValueError, "empty range for randrange()"
ValueError: empty range for randrange()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment