Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

keep all location logic in the package

  • Loading branch information...
commit 5fdfd0eec03df89a7258c688d301611992eed1c8 1 parent 01d05fd
Zack Dever authored November 27, 2012
4  location/__init__.py
@@ -27,3 +27,7 @@
27 27
 app.register_blueprint(api, url_prefix='/api')
28 28
 app.register_blueprint(auth)
29 29
 app.register_blueprint(ui)
  30
+
  31
+def run_server():
  32
+    """Starts the server, as you might expect."""
  33
+    app.run(host=app.config['HOST'], port=app.config['PORT'])
7  runserver.py
... ...
@@ -1,9 +1,6 @@
1 1
 #!/usr/bin/env python
2 2
 
3  
-"""
4  
-Starts the server, as you might expect.
5  
-"""
  3
+from location import run_server
6 4
 
7  
-from location import app
  5
+run_server()
8 6
 
9  
-app.run(host=app.config['HOST'], port=app.config['PORT'])

0 notes on commit 5fdfd0e

Please sign in to comment.
Something went wrong with that request. Please try again.