<s> import csv <EOL> import os <EOL> from django . core . management . base import BaseCommand <EOL> from symposion . speakers . models import Speaker <EOL> class Command ( BaseCommand ) : <EOL> def handle ( self , * args , ** options ) : <EOL> csv_file = csv . writer ( open ( os . path . join ( os . getcwd ( ) , "<STR_LIT>" ) , "<STR_LIT:wb>" ) ) <EOL> csv_file . writerow ( [ "<STR_LIT:Name>" , "<STR_LIT>" ] ) <EOL> for speaker in Speaker . objects . all ( ) : <EOL> csv_file . writerow ( [ <EOL> speaker . name . encode ( "<STR_LIT:utf-8>" ) , <EOL> speaker . biography . encode ( "<STR_LIT:utf-8>" ) , <EOL> ] ) </s>
