~nuclearbob/uci-engine/database-consolidation

« back to all changes in this revision

Viewing changes to nf-data-collector/nfdc/__init__.py

  • Committer: Thomi Richards
  • Date: 2014-06-24 02:46:37 UTC
  • Revision ID: thomi.richards@canonical.com-20140624024637-2h4qch85z0pdlbfu
Initial auth pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
from nfdc.api import v1 as api_v1
 
23
from nfdc import auth
23
24
from nfdc.database import get_connection_for_request
24
25
 
25
26
# pgsql_file = os.path.abspath(
35
36
    #
36
37
    # The root app is served at '/api/v1/' - note the trailing '/'.
37
38
    config.include(api_v1.configure_routes, route_prefix='/api/v1')
 
39
    config.include(auth.configure)
 
40
    config.scan()
38
41
    try:
39
42
        import pyramid_debugtoolbar
40
43
        config.include('pyramid_debugtoolbar')
53
56
 
54
57
 
55
58
if __name__ == '__main__':
56
 
    server = make_server('127.0.0.1', 8080, app)
 
59
    server = make_server('127.0.0.1', 8000, app)
57
60
    server.serve_forever()