Skip to content
Local Library website written in Django; example for the MDN server-side development Django module:
Branch: master
Clone or download
Latest commit 04e9825 Mar 31, 2019

Django Local Library

Tutorial "Local Library" website written in Django.

For detailed information about this project see the associated MDN tutorial home page.


This web application creates an online catalog for a small local library, where users can browse available books and manage their accounts.

The main features that have currently been implemented are:

  • There are models for books, book copies, genre, language and authors.
  • Users can view list and detail information for books and authors.
  • Admin users can create and manage models. The admin has been optimised (the basic registration is present in, but commented out).
  • Librarians can renew reserved books

Local Library Model

Quick Start

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

  1. Set up the Python development environment. We recommend using a Python 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 python to start Python):
    pip3 install -r requirements.txt
    python3 makemigrations
    python3 migrate
    python3 collectstatic
    python3 test # Run the standard tests. These should all pass.
    python3 createsuperuser # Create a superuser
    python3 runserver
  3. Open a browser to to open the admin site
  4. Create a few test objects of each type.
  5. Open tab to to see the main site, with your new objects.
You can’t perform that action at this time.