Skip to content

Commit 4b3ad9e

Browse files
committed
reset sign up view.
1 parent bc07fce commit 4b3ad9e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

postcode/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
from os import environ
88
from flask import Flask
99
from flask.ext.sqlalchemy import SQLAlchemy
10-
# from database import init_db, db_session
10+
from database import init_db, db_session
1111

1212
# Initialize Flask app
1313
app = Flask(__name__)
1414
app.debug = True
1515
app.config.from_object(__name__)
1616
app.config['SECRET_KEY'] = environ['SECRET_KEY']
1717

18-
# Initialize database
19-
db = SQLAlchemy(app)
18+
19+
init_db()

postcode/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from sqlalchemy.ext.declarative import declarative_base
44
import os
55

6-
print os.environ
76
engine = create_engine(os.environ['DATABASE_URL'], convert_unicode=True)
87
db_session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine))
98
Base = declarative_base()

0 commit comments

Comments
 (0)