diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-25 01:11:31 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-25 01:11:31 +0100 |
commit | 4fe65d2f593f892452ddcf0f219b51a443e50527 (patch) | |
tree | a9c044aa9f575d9f063225fe759be0c605c39212 | |
parent | 346b22ddf795f9a5a10ddc6b83bfa3bc15c8d30a (diff) |
Read db path from settings.py.
-rw-r--r-- | db.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,8 +1,9 @@ from sqlalchemy import create_engine, Column, Integer, String, DateTime, Text, Index from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relation, backref +import settings -engine = create_engine('sqlite:////home/snakebite/pastepy/db') +engine = create_engine(settings.db_path) Base = declarative_base(engine = engine) |