move urlparse into if that validate if server is running local or on heroku
move urlparse into if that validate if server is running local or on heroku

jlopezvi/Consensus,jlopezvi/Consensus,jlopezvi/Consensus