WIP: Deployment #3
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,6 +4,10 @@ db.sqlite3
|
||||
dummyusers.json
|
||||
*.prof
|
||||
|
||||
|
||||
# IDE
|
||||
.vscode
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
BIN
CalibreWebCompanion/db.sqlite3.bak
Normal file
BIN
CalibreWebCompanion/db.sqlite3.bak
Normal file
Binary file not shown.
@ -149,7 +149,7 @@ class BookDetailView(generic.DetailView):
|
||||
pass
|
||||
context["imgpath"] = context["object"].path + "/cover.jpg"
|
||||
download = Data.objects.get(book=context["object"].id)
|
||||
context["download"] = f"{context['object'].path}/{download.name}.{download.format}"
|
||||
context["download"] = f"{context['object'].path}/{download.name}.{download.format.lower()}"
|
||||
return context
|
||||
|
||||
|
||||
|
10
CalibreWebCompanion/settings.json.bak
Normal file
10
CalibreWebCompanion/settings.json.bak
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"CALIBRE_DIR": "PATH\\TO\\your\\calibre\library",
|
||||
"SECRET_KEY": "u(8^+rb%rz5hsx4v^^y(ul7g(4n7a8!db@s*9(m5cs*2_ppy8+",
|
||||
"ALLOWED_HOSTS": [
|
||||
"127.0.0.1"
|
||||
],
|
||||
"INTERNAL_IPS": [
|
||||
"127.0.0.1"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user