Skip to content

December, 2013 Meeting Notes

Raymond Finzel edited this page Dec 4, 2013 · 2 revisions

Meeting 12/03/2013

These are rough notes that will be used to write more formal wiki entries in the future. They very much reflect the raw and visceral nature of our small but vibrant python community.


Stacks is an application that will serve as a digital library for both physical and electronic books for the PyMNtos PUG, will serve as a learning tool for PUG members in Minnesota and elsewhere, and will (hopefully) be exemplary of Django best practices.

  • Setting up the dev environment
  • Setup

Make the Django Project

mkvirtualenv stacks
workon stacks
pip install django
pip install pip-tools
pip freeze > requirements.txt
django-admin.py startproject stacks

At this point you will have a "stacks" folder with manage.py and another "stacks" folder inside of that.

cd stacks
./manage.py startapp library

At this point, edit settings.py in the innermost "stacks" folder. Edit the INSTALLED_APPS string. Add an extra line 'library', that will tell django that you want to use your library app. This is a common gotcha.

./manage.py runserver

Congrats. You made an program. Visit it in your browser! localhost:8000

For the rest of this initial setup, read the Installation Guide.

Design Notes

Basic prototyping does not necessarily reflect the decisions below.

Objects in the Library and their Attributes
  • Book

  • UUID

  • Title

  • ISBN 10

  • ISBN 13

  • Publish Date

  • Publisher => Publisher

  • Author => Author

  • Image of Cover

  • Description

  • Lender (?) => Lender

  • Lender

  • Author

  • Last Name

  • First Name

  • Publisher

Extraneous Notes / Installations (eventually):

  • Django South for database migration will be used (if using a bleeding edge version of Django, this is rolled in and does not need to be installed separately)
  • pip-tools
  • Django Debug Toolbar