<class 'main.models.DoesNotExist'>
Python 2.6.6: /usr/bin/python
Tue May 30 11:29:03 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
  556         """Runs the handler, flushes the streams, and ends the request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi_fork.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi_fork.WSGIServer object>>
 /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi_fork.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
 1116         try:
 1117             try:
 1118                 result = self.application(environ, start_response)
 1119                 try:
 1120                     for data in result:
result = None, self = <flup.server.fcgi_fork.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'welinux.ru', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': u'/list/users/city/dev/null/', 'QUERY_STRING': '', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', ...}, start_response = <function start_response>
 /usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'welinux.ru', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH_INFO': u'/list/users/city/dev/null/', 'QUERY_STRING': '', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', ...}, start_response=<function start_response>)
  239                 response = http.HttpResponseBadRequest()
  240             else:
  241                 response = self.get_response(request)
  242 
  243                 # Apply response middleware
response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
 /usr/lib/pymodules/python2.6/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
  139                 # Get the exception info now, in case another exception is thrown later.
  140                 receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
  141                 return self.handle_uncaught_exception(request, resolver, sys.exc_info())
  142         finally:
  143             # Reset URLconf for this thread on the way out for complete
self = <django.core.handlers.wsgi.WSGIHandler object>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...f <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver urls (None:None) ^/>, global sys = <module 'sys' (built-in)>, sys.exc_info = <built-in function exc_info>
 /usr/lib/pymodules/python2.6/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
   98 
   99                 try:
  100                     response = callback(request, *callback_args, **callback_kwargs)
  101                 except Exception, e:
  102                     # If the view raised an exception, run it through exception
response = None, callback = <function decorate>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, callback_args = (u'city', u'dev', u'null'), callback_kwargs = {}
 /usr/lib/pymodules/python2.6/django/utils/decorators.py in _wrapped_view(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, *args=(u'city', u'dev', u'null'), **kwargs={})
   74                         return result
   75                 try:
   76                     response = view_func(request, *args, **kwargs)
   77                 except Exception, e:
   78                     if hasattr(middleware, 'process_exception'):
response undefined, view_func = <function decorate>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, args = (u'city', u'dev', u'null'), kwargs = {}
 /usr/local/lib/python2.6/dist-packages/annoying/decorators.py in wrapper(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, *args=(u'city', u'dev', u'null'), **kwargs={})
   72         @wraps(function)
   73         def wrapper(request, *args, **kwargs):
   74             output = function(request, *args, **kwargs)
   75             if not isinstance(output, dict):
   76                 return output
output undefined, function = <functools.partial object>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, args = (u'city', u'dev', u'null'), kwargs = {}
 /usr/local/lib/python2.6/dist-packages/django_simplepagination-0.0.1-py2.6.egg/simplepagination/__init__.py in decorate(self=<simplepagination.SimplePaginator object>, function=<function list_users>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, *args=(u'city', u'dev', u'null'), **kwargs={})
   50 
   51         # execute view 
   52         output = function(request, *args, **kwargs)
   53         
   54         # only try to paginate if view returned dictionary,
output undefined, function = <function list_users>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, args = (u'city', u'dev', u'null'), kwargs = {}
 /var/djang0byte/djang0byte/main/views/list.py in list_users(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, order=u'city', param=u'city', param_value=u'dev')
   49         
   50     if param == 'city':
   51         items = Profile.objects.select_related('user').filter(city=City.objects.get(name=param_value))
   52         url = '/list/users/city/%s/' % (param_value, )
   53     else:
items undefined, global Profile = <class 'main.models.Profile'>, Profile.objects = <django.db.models.manager.Manager object>, Profile.objects.select_related = <bound method Manager.select_related of <django.db.models.manager.Manager object>>, ).filter undefined, city undefined, global City = <class 'main.models.City'>, City.objects = <django.db.models.manager.Manager object>, City.objects.get = <bound method Manager.get of <django.db.models.manager.Manager object>>, name undefined, param_value = u'dev'
 /usr/lib/pymodules/python2.6/django/db/models/manager.py in get(self=<django.db.models.manager.Manager object>, *args=(), **kwargs={'name': u'dev'})
  130 
  131     def get(self, *args, **kwargs):
  132         return self.get_query_set().get(*args, **kwargs)
  133 
  134     def get_or_create(self, **kwargs):
self = <django.db.models.manager.Manager object>, self.get_query_set = <bound method Manager.get_query_set of <django.db.models.manager.Manager object>>, ).get undefined, args = (), kwargs = {'name': u'dev'}
 /usr/lib/pymodules/python2.6/django/db/models/query.py in get(self=[<City: Томск>, <City: Санкт-Пете...еры>, '...(remaining elements truncated)...'], *args=(), **kwargs={'name': u'dev'})
  339         if not num:
  340             raise self.model.DoesNotExist("%s matching query does not exist."
  341                     % self.model._meta.object_name)
  342         raise self.model.MultipleObjectsReturned("get() returned more than one %s -- it returned %s! Lookup parameters were %s"
  343                 % (self.model._meta.object_name, num, kwargs))
self = [<City: Томск>, <City: Санкт-Пете...еры>, '...(remaining elements truncated)...'], self.model = <class 'main.models.City'>, self.model._meta = <Options for City>, self.model._meta.object_name = 'City'

<class 'main.models.DoesNotExist'>: City matching query does not exist.
      args = ('City matching query does not exist.',)
      message = 'City matching query does not exist.'
      silent_variable_failure = True