reworking app to be served by django