Functions for create Post in swift and django