Skip to content

Instantly share code, notes, and snippets.

@aditya1702
Created May 22, 2016 11:15
Show Gist options
  • Save aditya1702/2b280480cdfed2a7f92fd13d5fdbc2ff to your computer and use it in GitHub Desktop.
Save aditya1702/2b280480cdfed2a7f92fd13d5fdbc2ff to your computer and use it in GitHub Desktop.
Exception on /admin/login/ [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask_cors/extension.py", line 188, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask_debugtoolbar/__init__.py", line 125, in dispatch_request
return view_func(**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line 68, in inner
return self._run_view(f, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line 367, in _run_view
return fn(self, *args, **kwargs)
File "/vagrant/open_event/views/admin/home.py", line 52, in login_view
self._template_args['events'] = DataGetter.get_all_events()
File "/vagrant/open_event/helpers/data_getter.py", line 21, in get_all_events
return Event.query.all()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2588, in all
return list(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2736, in __iter__
return self._execute_and_instances(context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2751, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) column events.state does not exist
LINE 1: ...logan AS events_slogan, events.url AS events_url, events.sta...
^
[SQL: 'SELECT events.id AS events_id, events.name AS events_name, events.email AS events_email, events.color AS events_color, events.logo AS events_logo, events.start_time AS events_start_time, events.end_time AS events_end_time, events.latitude AS events_latitude, events.longitude AS events_longitude, events.location_name AS events_location_name, events.slogan AS events_slogan, events.url AS events_url, events.state AS events_state \nFROM events']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment