diff options
-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) |