forked from 18F/PriceHistoryGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.wsgi
More file actions
20 lines (14 loc) · 764 Bytes
/
app.wsgi
File metadata and controls
20 lines (14 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is for (for example) Apache with mod_wsgi.
import PPBottleApp
import os
# Note this is quite different from PricesPaid.py,
# which is the entry point for using bottle as your webserver.
application = PPBottleApp.app
def application(environ, start_response):
os.environ['PricesPaidAPIUsername'] = environ['PricesPaidAPIUsername']
os.environ['PricesPaidAPIPassword'] = environ['PricesPaidAPIPassword']
os.environ['PricesPaidAPIBasicAuthUsername'] = environ['PricesPaidAPIBasicAuthUsername']
os.environ['PricesPaidAPIBasicAuthPassword'] = environ['PricesPaidAPIBasicAuthPassword']
os.environ['P3APISALT'] = environ['P3APISALT']
os.environ['PYCAS_SECRET'] = environ['PYCAS_SECRET']
return PPBottleApp.app(environ, start_response)