Permalink
Browse files

keep all location logic in the package

  • Loading branch information...
1 parent 01d05fd commit 5fdfd0eec03df89a7258c688d301611992eed1c8 @zackdever committed Nov 27, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −0 location/__init__.py
  2. +2 −5 runserver.py
@@ -27,3 +27,7 @@
app.register_blueprint(api, url_prefix='/api')
app.register_blueprint(auth)
app.register_blueprint(ui)
+
+def run_server():
+ """Starts the server, as you might expect."""
+ app.run(host=app.config['HOST'], port=app.config['PORT'])
View
@@ -1,9 +1,6 @@
#!/usr/bin/env python
-"""
-Starts the server, as you might expect.
-"""
+from location import run_server
-from location import app
+run_server()
-app.run(host=app.config['HOST'], port=app.config['PORT'])

0 comments on commit 5fdfd0e

Please sign in to comment.