Slide 9
Slide 9 text
H O W W E B U I LT I T:
F I E L D M A P P I N G
U S I N G D J A N G O R E S T F R A M E W O R K W I T H 6 0 , 0 0 0 E N D P O I N T S
P R O V E D A C H A L L E N G E .
W E S TA R T E D B Y I N T R O S P E C T I O N O F T H E D ATA B A S E .
COLUMN_FIELD_MAP = {
'smallint': 'IntegerField({}blank=True, null=True{})',
'integer': 'IntegerField({}blank=True, null=True{})',
'bigint': 'BigIntegerField({}blank=True, null=True{})',
'numeric': 'DecimalField({}blank=True, null=True{})',
'double precision': 'FloatField({}blank=True, null=True{})',
'date': 'DateField({}blank=True, null=True{})',
'timestamp without time zone': 'DateTimeField({}blank=True,
null=True{})',
'time without time zone': 'TimeField({}blank=True, null=True{})',
'character varying': 'TextField({}blank=True, null=True{})’,
[...]
}