Skip to content

Instantly share code, notes, and snippets.

View Blue0ctober's full-sized avatar

Edgar Valdes Blue0ctober

View GitHub Profile
#all the imports
from __future__ import with_statement
from contextlib import closing
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash
# configuration
DATABASE = "/tmp/flaskr.db"
DEBUG = True
SECRET_KEY = 'development key'
@Blue0ctober
Blue0ctober / sqlalchemy upgrade
Last active December 10, 2015 07:58
fix for issue where sqlalchemy doesnt work with current version.
phoenix:~/Dropbox/Exercises/Python/microblog@master✗✗✗ Logged in as:evaldes
% ./db_create.py {12-12-28 9:28PM}
Traceback (most recent call last):
File "./db_create.py", line 2, in <module>
from migrate.versioning import api
File "/Users/evaldes/Dropbox/Exercises/Python/microblog/flask/lib/python2.7/site-packages/migrate/versioning/api.py", line 33, in <module>
from migrate.versioning import (repository, schema, version,
File "/Users/evaldes/Dropbox/Exercises/Python/microblog/flask/lib/python2.7/site-packages/migrate/versioning/schema.py", line 10, in <module>
from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions

Keybase proof

I hereby claim:

  • I am blue0ctober on github.
  • I am blue0ctober (https://keybase.io/blue0ctober) on keybase.
  • I have a public key whose fingerprint is 0D0A 126A 2BC7 80EF 777C 5B07 1AEF EB5E 85B1 650F

To claim this, I am signing this object: