Skip to content

Commit a4c5c46

Browse files
committed
Fix config/urls.py error
Changes to be committed: deleted: .secrets modified: config/settings.py modified: config/urls.py
1 parent 0c0108d commit a4c5c46

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.secrets

Whitespace-only changes.

config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
secrets.read(BASE_DIR + "/.secrets")
1414
PRODUCTION = secrets["SERVER"]["PRODUCTION"]
1515
DEBUG = PRODUCTION
16-
16+
VERSION = secrets["SERVER"]["SERVER_VERSION"]
1717
# Set the anonymous user's key.
1818
ANON_KEY = secrets["DJANGO_KEYS"]["ANON_KEY"]
1919

config/urls.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
from rest_framework_jwt.views import obtain_jwt_token, verify_jwt_token
1313
from 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

2218
ShcemaView = get_schema_view(
2319
openapi.Info(

0 commit comments

Comments
 (0)