mirror of https://github.com/mitsuhiko/flask.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
611 B
20 lines
611 B
7 years ago
|
from flask import Flask
|
||
|
from flask_script import Manager
|
||
|
#from flask.ext.sqlalchemy import SQLAlchemy
|
||
|
#from flask.ext.migrate import Migrate, MigrateCommand
|
||
|
from .commands import REPL
|
||
|
import os
|
||
|
|
||
|
username,password = "eric_s","1234"
|
||
|
app = Flask(__name__)
|
||
|
#app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DATABASE_URL")
|
||
|
#app.config["SQLALCHEMY_DATABASE_URI"] = "postgresql://"+username+":"+password+"@localhost/backpage_ads"
|
||
|
#db = SQLAlchemy(app)
|
||
|
#migrate = Migrate(app,db)
|
||
|
|
||
|
#manager = Manager(app)
|
||
|
#manager.add_command('db', MigrateCommand)
|
||
|
#manager.add_command("shell",REPL())
|
||
|
|
||
|
from app import views #,models
|