Linked Djangos settings to pyShelfs config

This commit is contained in:
Mike Young
2019-12-22 13:35:58 -05:00
parent ee43b85cb8
commit 083f82fde1
5 changed files with 36 additions and 5 deletions

View File

@@ -36,6 +36,10 @@ class Config:
self.root = root
self.auto_scan = True
self.allowed_hosts = _data["ALLOWED_HOSTS"]
self.db_user = _data["USER"]
self.db_pass = _data["PASSWORD"]
def open_file(self, _cp):
"""
Opens config.json and reads in configuration options