jamesward/flaskbars — Issue #1: AttributeError: 'NoneType' object has no attribute 'drivername'
Author: esacteksab
Created: 2011-12-28 02:45:17+00:00
State: open

Per your instructions to deploy on Heroku. Received this error when attempting to run a query.

http://paste.pocoo.org/show/sws5XFvfE4u2Hr8C4vIZ/

FWIW, got this when running CreateDbSchema

Running python manage.py createDbSchema attached to terminal... up, run.1
Traceback (most recent call last):
File "manage.py", line 11, in
manager.run()
File "/app/lib/python2.7/site-packages/flaskext/script.py", line 684, in run
sys.argv[2:])
File "/app/lib/python2.7/site-packages/flaskext/script.py", line 655, in handle
command.handle(app, *positional_args, **command_namespace.__dict__)
File "/app/lib/python2.7/site-packages/flaskext/script.py", line 192, in handle
self.run(*args, **kwargs)
File "manage.py", line 8, in createDbSchema
db.create_all()
File "/app/lib/python2.7/site-packages/flaskext/sqlalchemy.py", line 795, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/app/lib/python2.7/site-packages/flaskext/sqlalchemy.py", line 787, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), tables=tables)
File "/app/lib/python2.7/site-packages/flaskext/sqlalchemy.py", line 736, in get_engine
return connector.get_engine()
File "/app/lib/python2.7/site-packages/flaskext/sqlalchemy.py", line 428, in get_engine
self._sa.apply_driver_hacks(self._app, info, options)
File "/app/lib/python2.7/site-packages/flaskext/sqlalchemy.py", line 679, in apply_driver_hacks
if info.drivername == 'mysql':
AttributeError: 'NoneType' object has no attribute 'drivername'