Skip to content
Collect daily reference desk statistics in a database
Python HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
templates
translations/fr/LC_MESSAGES
.gitignore
LICENSE
README.adoc
__init__.py
babel.cfg
conf.py
config.ini
data.py
refdesk.fcgi
refdesk.py
schema.sql

README.adoc

Installation

Description

This is an application allowing the collection of reference desk statistics through a web application with Flask.

Requirements

This application requires:

  • Flask

    • Flask-Babel

    • Flask-Login

  • Python-LDAP

Simply pip-install them and you’ll be on your way out.

Database

The database used is PostgreSQL. The file schema.sql will have all of the SQL needed to generate the tables/permissions/views that the application demands.

Babel Install

Language translations for french are already included with the application, and should work out of the box. In the case they don’t:

pybabel compile -i messages.pot -d translations/

should be enough to fix it.

Secret Key

You’ll need to generate your own secret key to sign cookies. Generally, the easiest way to do this would be:

>>> import os
>>> os.urandom(24).encode('hex')

Which will give you a nice, long sequence of hex digits.

Something went wrong with that request. Please try again.