def build_map(self): self.build_list_view( base_path=reverse("map:maplist"), paginate_by=1000000 ) response = self.client.get(reverse("map:mapdata")) self.write_file("media/js/mainmap", response.content, 'js', '') def map_builder(): j = BuildJrnl("jrnl", "entry") j.build_map()