You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty table can be viewed via /admin/${TABLE_NAME}view, but not via /${TABLE_NAME}s, as there is a runtime failure:
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/app/.heroku/python/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 144, in __call__
return self.app(environ, start_response)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
_dispatch_request()
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/decorators.py", line 27, in wrapped
rv = f(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/sandman.py", line 493, in get_collection
return collection_response(resources, start, stop)
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/sandman.py", line 279, in collection_response
return _collection_html_response(resources, start, stop)
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/sandman.py", line 149, in _collection_html_response
resources=resources[start:stop]))
File "/app/.heroku/python/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/app/.heroku/python/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/templates/collection.html", line 1, in top-level template code
{% extends "base.html" %}
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/templates/base.html", line 21, in top-level template code
{% block content %}
File "/app/.heroku/python/lib/python2.7/site-packages/sandman/templates/collection.html", line 5, in block "content"
<h2>{{ resources[0].__tablename__ }}</h2>
File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 401, in getattr
return obj[attribute]
UndefinedError: list object has no element 0
The text was updated successfully, but these errors were encountered:
An empty table can be viewed via
/admin/${TABLE_NAME}view
, but not via/${TABLE_NAME}s
, as there is a runtime failure:The text was updated successfully, but these errors were encountered: