path = dir + os.sep + filename
collection_id = '_'.join([department_name, course_id, course_type])
- department, created = Department.objects.get_or_create(name=department_name, organization=organization)
- conference, created = Conference.objects.get_or_create(public_id=public_id)
+ department, c = Department.objects.get_or_create(name=department_name,
+ organization=organization)
+
+ conference, c = Conference.objects.get_or_create(public_id=public_id)
+ conference.course = Course.objects.get(code=course_id)
+ conference.course = Course.objects.get(name=course_type)
+ conference.save()
exist = False
medias = conference.media.all()
echo "Update sandbox @ angus.parisson.com:"
ssh angus.parisson.com "cd /var/teleforma/teleforma-dev; git pull origin dev; \
cd /var/teleforma/sandbox/; ./manage.py migrate --delete-ghost-migrations; \
- ./manage.py collectstatic "
+ ./manage.py collectstatic --ignore archives --ignore Pre-Barreau --ignore cache "
echo "Done !"