How eyadma7moud/online-library-web-project works
Libraria is a Django library-management web app. Readers browse and search the catalog, borrow and return books, manage favorites and profiles, and review borrowing history; administrators manage catalog records and oversee users and borrowing. Django routes requests to application views, which implement these workflows using forms and domain models. The README documents the major product capabilities; sampled backend excerpts show view-to-model and view-to-form use. Templates are described in the README but absent from the supplied tree, so they are not represented as source nodes.
Main entry points: views.py Request handlers · urls.py Application routes · models.py Library models · forms.py Book form
Components 22
Web entry
- Application routes
application/urls.py - Request handlers
application/views.py
Reader features
- Accounts
application/views.py - Browse and search
application/views.py - Borrow and return
application/views.py - Borrowing history
application/views.py - Favorites
application/views.py - Profile and settings
application/views.py
Library management
- Admin dashboard
application/views.py - Catalog CRUD
application/views.py - Book form
application/forms.py
Domain and persistence
- Library models
application/models.py - Configured database
config/settings.py
Browser interactions
- Catalog interface
static/js/books-page.js - Book details
static/js/book-details.js - Borrow interaction
static/js/borrow.js - Return interaction
static/js/return.js - Favorite interaction
static/js/favourite.js - Auth and theme UI
static/js/auth.js - Profile settings UI
static/js/account_settings.js - Catalog editing UI
static/js/add-book.js
Other components
- Reader
Connections 22
- Reader → Application routes: requests pages
- Application routes → Request handlers: dispatches
application/urls.py - Request handlers → Accounts: handles account requests
application/views.py - Request handlers → Browse and search: handles catalog requests
application/views.py - Request handlers → Borrow and return: handles lending requests
application/views.py - Request handlers → Borrowing history: handles history requests
application/urls.py - Request handlers → Favorites: handles favorites requests
application/views.py - Request handlers → Profile and settings: handles profile requests
application/views.py - Request handlers → Admin dashboard: handles dashboard requests
application/urls.py - Request handlers → Catalog CRUD: handles catalog changes
application/urls.py - Catalog CRUD → Book form: validates book data
application/views.py - Request handlers → Library models: queries and updates
application/views.py - Request handlers → Book form: imports form
application/views.py - Library models → Configured database: stores domain records
- Catalog interface → Reader: supports browsing
- Book details → Reader: supports book details
- Borrow interaction → Reader: supports borrowing
- Return interaction → Reader: supports returns
- Favorite interaction → Reader: supports favorites
- Auth and theme UI → Reader: supports account access
- Profile settings UI → Reader: supports profile updates
- Catalog editing UI → Catalog CRUD: supports book entry