Skip to content

Import Tate Draw artworks

The Tate Draw application is available publicly online at https://draw.tate.org.uk/ (as well as at on-site kiosks)

Artworks created by users of the application are viewable in a portal (for internal use only) at https://portal.draw.tate.org.uk/login. The Tate Kids teams can supply access details if required.

The portal allows the selecting of artworks to be shown on-site (in the portal these are tagged by source site). These are automatically shown in gallery projections etc.

Artworks tagged 'online' in the portal (i.e those created by the public online version) can also be selected but nothing further happens with these automatically. However, the TD API does expose the selected 'online' artworks.

The import_tate_draw_artworks command use this API to fetch these artworks, and for each, does the following:

  • Stores the image in our Cloudary account (like all other application/game submissions)
  • Creates an instance of tate.kids_artwork.models.Artwork
  • Sets the following on the above instance: is_approved=True

Therefore, the running of this import command enables artworks selected in the TD portal to be added to the general listing of 'approved' artworks (from various sources) under 'Artworks' at /django/admin/

All 'approved' artworks automatically appear in https://www.tate.org.uk/kids/gallery

Currently scheduled running of commands is effectively to new commands so this command will need to be run manually on the production server every Monday (as agreed with the TK team) - as follows:

python3 manage.py import_tate_draw_artworks [YYYY-MM-DD]

e.g python manage.py import_tate_draw_artworks 2023-11-14

The date argument is required by the TD API request and indicates the request is for 'all artworks selected since this date' (NB. not all artworks created since this date)

To that end, please use the command passing the date of the previous Monday.

(The date use in the request could probably be generated programmatically but not doing so provides a bit of flexibility if the command is not run on a Monday or a week is missed etc)

For Tate Draw API queries, contact io+tatedraw@theworkers.net