Skip to content

Database: Initialization and Loading in BibTeX files

cpritcha edited this page Mar 3, 2017 · 3 revisions

Initialization

Place an SQL database dump in the root folder of the project and call it catalog.sql (the name of the file is determined tasks.py restore_from_dump function). Now delete your old docker volumes and containers (docker-compose down -v) and bring all the containers up again (docker-compose up -d). The data should now be loaded into the database.

Loading in BibTeX files

To load in a BibTeX file run the load_bibtex management command. For example, to load a file named abm_publications_2016.bib into the database as user foo you would run

./manage.py load_bibtex -f abm_publications_2016.bib -u foo

Clone this wiki locally