move django related code from MoePad repo