Django secret generated per install,

This commit is contained in:
Raelon Masters
2020-08-02 13:17:41 -04:00
parent 5e36fc1d16
commit 0fc3d445fc
12 changed files with 49 additions and 23 deletions

View File

@@ -17,6 +17,7 @@ class Config:
"""
_cp = pathlib.Path.joinpath(root, self._fp)
_data = self.open_file(_cp)
breakpoint()
self.book_path = _data["BOOKPATH"]
self.TITLE = _data["TITLE"]
self.VERSION = _data["VERSION"]
@@ -36,6 +37,7 @@ class Config:
self.allowed_hosts = _data["ALLOWED_HOSTS"]
self.db_user = _data["USER"]
self.db_pass = _data["PASSWORD"]
self.SECRET = _data["SECRET"]
def open_file(self, _cp):
"""