Changed work of shelf books

This commit is contained in:
maciejrusek
2026-03-22 14:19:17 +01:00
parent 5722f0b7ea
commit aeab43aa8a
23 changed files with 307 additions and 140 deletions

View File

@@ -1,4 +1,5 @@
import os
from datetime import timedelta
from config.env import BASE_DIR, env
@@ -21,6 +22,7 @@ INSTALLED_APPS = [
"apps.shelves.apps.ShelvesConfig",
"apps.books.apps.BooksConfig",
"apps.authors.apps.AuthorsConfig",
"apps.shelf_books.apps.ShelfBooksConfig",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@@ -112,9 +114,18 @@ SPECTACULAR_SETTINGS = {
'DESCRIPTION': 'Library project',
'VERSION': '1.0.0',
'SERVE_INCLUDE_SCHEMA': False,
"COMPONENT_SPLIT_REQUEST": True,
"SCHEMA_PATH_PREFIX": "/api/",
}
SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(days=1),
"REFRESH_TOKEN_LIFETIME": timedelta(days=7),
}
# Internationalization
# https://docs.djangoproject.com/en/6.0/topics/i18n/