Skip to content

Files

Latest commit

a10a60f · Oct 10, 2023

History

History

bin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 19, 2023
Oct 20, 2022
Jul 18, 2023
Oct 10, 2023
Jul 18, 2023
Oct 10, 2023
Feb 3, 2023
Oct 10, 2023
Oct 20, 2022
Oct 20, 2022
Oct 2, 2023

README.md

HOWTO: import schedule from pretalx

Prerequisites

  1. Clone this repo (assumed path: ~/code/<year.djangocon.us>)
  2. Clone https://github.com/djangocon/pretalx-api-import (assumed path: ~/code/pretalx-api-import)
  3. Set up virtual environments in both repos
  4. In this repo, pip install wheel && pip install -r bin/requirements.txt (You can put the two repos wherever, but it's easiest if they're in the same directory)

Load the data

  1. Download both the schedule and speaker list (confirmed talks only) as JSON
  2. Import speakers: from the pretalx-api-import folder, run python main.py speakers /path/to/pretalx-speakers.json --output-folder ../<year>.djangocon.us
  3. Import schedule: from the pretalx-api-import folder, run python main.py main /path/to/pretalx-sessions.json --output-folder ../<year>.djangocon.us
  4. Generate breaks/lunch/etc.: from this repo: run python bin/process.py generate-2023-placeholders --create-keynotes 2023-10-15 (2023-10-15 is the Sunday before talks start, which is usually tutorial day but is not for 2023)
  5. Generate opening remarks: python bin/process.py generate-opening-remarks "2023-10-16 09:30:00" --speaker-name "<speaker name>" and repeat for each talk day
  6. Reformat: python bin/process.py fmt
  7. Commit the _schedule folder

Add pronouns

After speakers have completed the speaker information form:

  1. Update bin/process.py, function add_pronouns_from_csv to make sure you have the right field indexes
  2. Export the speaker information form responses from Google sheets
  3. python bin/process.py /path/to/exported.csv
  4. Commit the changes to _presenters/