Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask
- from django.core.management import setup_environ
- from ubsfacil import settings
- setup_environ(settings)
- from ubs.models import Ubs
- app = Flask(__name__)
- @app.route("/")
- def hello():
- #import ipdb; ipdb.set_trace()
- u = Ubs.objects.count()
- return "Hello World! UBS: %i" % u
- if __name__ == "__main__":
- app.debug = True
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement