Command line usage¶
This application offers commands that need to be run from the command line. They deal with the import and export of publications into and from the Django database
publicationimport¶
This script is used to import a publication into the EOA publication platform.
Usage:
python manage.py publicationimport ${import_dir}
Note
The import directory is mandatory and helps managing several projects at a time.
The script requires these input files and directories:
Cover.jpg
Django.xml
images
publication.cfg
Based on the information found in the fields Series
and Number
of publication.cfg
, a new directory will be created in the media
directory, e.g. media/studies/14
. If the directory already exists, the script fails.
The original input files are also stored in the newly created directory, so the input directory can be deleted.
Once the publication has been successfully imported, it needs be edited and published in the Django admin interface.