Skip to content

Repository files navigation

Local Library Website

This project is a Django-based web application that serves as an online catalog for a small local library. It allows users to browse available books and provides functionality for library management.

Features

  • Browse Books: Users can view a list of available books and detailed information about each book.
  • Browse Authors: Users can view information about authors.
  • Admin Interface: Admin users can create and manage models for books, book copies, genres, languages, and authors.
  • Book Reservations (Future): The application is designed to be extended to allow users to reserve books.
  • User Authentication: Support for user authentication will be added in future developments.
  • Forms: The application will be extended to incorporate forms for various interactions.
  • Librarian Functions (Future): Librarians can renew reserved books.

Technologies Used

  • Django Web Framework (Python)

Get Started

To get this project up and running locally on your computer:

  1. Set up the Python development environment. We recommend using the venv virtual environment.

  2. Assuming you have Python setup, run the following commands (if you're on Windows you may use py or py -3 instead of python3 to start Python):

  • pip3 install -r requirements.txt
  • python3 manage.py makemigrations
  • python3 manage.py migrate
  • python3 manage.py collectstatic
  • python3 manage.py test
  • python3 manage.py createsuperuser (Make sure to remember your username and password. It is SUPER important)
  • python3 manage.py runserver

  1. Open a browser to http://127.0.0.1:8000/admin/ to open the admin site
  2. Create a few test objects of each type.
  3. Open tab to http://127.0.0.1:8000 to see the main site, with your new objects.

TECHNICAL ISSUES

When running the server in Google Chrome, sometimes the website will read that "http://127.0.0.1:8000 cannot be found". VS Code will read "[26/May/2025 12:50:38] code 400, message Bad request version ('mõü9\x8bÝ\x1bô\x01¤\x00')[26/May/2025 12:50:38] You're accessing the development server over HTTPS, but it only supports HTTP." YOU HAVE TO CLEAR ALL COOKIES BEFORE LAUNCHING THE APP!! This is a bug that unfortunately cannot be fixed any other way.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages