Each command can be executed by running
docker-compose exec portfolio-django python manage.py <command>
or if running the project locally by executing
python manage.py <command> in
This command deletes all entries from Portfolio.
This action is not reversible.
This command exports published entries for a specific year as CSV. Exported CSV files can be found in
This command imports all entries from a BibTeX file and creates according Portfolio entries for a specific user.
This is still an experimental feature, and implementation as well as mappings of BibTeX types to Portfolio schemas might change in the future.
userid- the ID of the user for whom the imported entries should be created
file- the full path to the BibTeX file to import entries from
A common usage might look like
python manage.py import_bibtex 12345ABCD67890EF12AB3456CD7890F0 references.bib
This assumes the
references.bib file resides in the projects
But relative paths can be used as well. So in a local dev environment you might
want to use something like
For a containerized setup, the easiest soultion is to copy your file into the
src folder, and then execute the command via
docker-compose exec portfolio-django python manage.py import_bibtex 12345ABCD67890EF12AB3456CD7890F0 references.bib