summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-25 01:11:31 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-25 01:11:31 +0100
commit4fe65d2f593f892452ddcf0f219b51a443e50527 (patch)
treea9c044aa9f575d9f063225fe759be0c605c39212
parent346b22ddf795f9a5a10ddc6b83bfa3bc15c8d30a (diff)
Read db path from settings.py.
-rw-r--r--db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/db.py b/db.py
index 06b2a14..8d96b4d 100644
--- a/db.py
+++ b/db.py
@@ -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)