File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1313secrets .read (BASE_DIR + "/.secrets" )
1414PRODUCTION = secrets ["SERVER" ]["PRODUCTION" ]
1515DEBUG = PRODUCTION
16-
16+ VERSION = secrets [ "SERVER" ][ "SERVER_VERSION" ]
1717# Set the anonymous user's key.
1818ANON_KEY = secrets ["DJANGO_KEYS" ]["ANON_KEY" ]
1919
Original file line number Diff line number Diff line change 1212from rest_framework_jwt .views import obtain_jwt_token , verify_jwt_token
1313from biocompute .apis import DraftRetrieveApi , PublishedRetrieveApi
1414
15- # Load the server config file.
16- server_config = configparser .ConfigParser ()
17- server_config .read (settings .BASE_DIR + "/server.conf" )
18-
19- PUBLISH_ONLY = server_config ["PUBLISHONLY" ]["publishonly" ]
20- VERSION = server_config ["VERSION" ]["version" ]
15+ # import pdb; pdb.set_trace()
16+ VERSION = settings .VERSION
2117
2218ShcemaView = get_schema_view (
2319 openapi .Info (
You can’t perform that action at this time.
0 commit comments