diff options
-rw-r--r-- | db.py | 3 | ||||
-rw-r--r-- | pastepy.py | 12 |
2 files changed, 13 insertions, 2 deletions
@@ -1,8 +1,9 @@ +import settings + from sqlalchemy import create_engine, Column, Integer, String, DateTime, Text, Index, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relation, backref from sqlalchemy.orm.exc import NoResultFound -import settings engine = create_engine(settings.db_path) @@ -1,4 +1,14 @@ -import templates, pygments, cgi, db, datetime, settings, os, mimetypes, Cookie, random +import cgi +import Cookie +import datetime +import db +import mimetypes +import os +import random + +import settings +import templates + from pygments import highlight from pygments.lexers import get_all_lexers, get_lexer_by_name from pygments.formatters import HtmlFormatter |