mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Django secret generated per install,
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user