FFDN ISP Database

Gu1 4e50737b42 bugfix: set modified flag manually on session 11 years ago
ffdnispdb 4e50737b42 bugfix: set modified flag manually on session 11 years ago
.gitignore e0b442a607 Add vim swp files to the list of ignored files 11 years ago
AUTHORS a25cf0016a Add an AUTHORS file, also use it as humans.txt 11 years ago
LICENSE 6871cede74 Add a 3-clause BSD License in the LICENSE file 11 years ago
README.md cc26ab6296 Fix manage db create and runserver 11 years ago
TODO 90bcb4d1b9 Update TODO, cosmetic changes to the map, add an empty API page 11 years ago
babel.cfg f280078215 Add Babel configuration file for i18n 11 years ago
manage.py cc26ab6296 Fix manage db create and runserver 11 years ago
requirements.txt 902d63273a Replace run/shell/rebuild.py with a generic manage.py build with Flask-Script 11 years ago
schema.sql ad5dd37db4 Add labels 12 years ago
settings_dev.py 44978d076d Switch to the Application Factory pattern and Blueprints 11 years ago
settings_prod.py.dist 90bcb4d1b9 Update TODO, cosmetic changes to the map, add an empty API page 11 years ago
test_ffdnispdb.py 42e52d051f Shiny new REST API with Documentation and Unit tests 11 years ago
variables.less 2c57a65651 Add a search input in navbar and a hover effect on nav buttons 11 years ago

README.md

ffdnispdb

ffdnispdb is a website designed to display all the ISPs implementing the ispschema specification.

How to deploy & use

Preferably in a virtualenv, run:

pip install -r requirements.txt
python manage.py db create
python manage.py runserver

How to translate

First, generate the template:

pybabel extract -F babel.cfg -o messages.pot ffdnispdb

Then initialize the catalog for the language you want:

pybabel init -i messages.pot -d ffdnispdb/translations -l XX

(where XX is the language code)

Once you're done translating, run:

pybabel compile -d ffdnispdb/translations

To update the catalog with the latest strings:

pybabel extract -F babel.cfg -o messages.pot ffdnispdb
pybabel update -i messages.pot -d ffdnispdb/translations