To enable the processing of web requests, we need to import functionality from Flask, GeoAlchemy2, and Shapely, a Python module for creating and processing geospatial data. We will also import the models and forms:
from application import app
from flask import render_template,jsonify, redirect, url_for, request, Markup
from .forms import *
from .models import *
import geoalchemy2,shapely
from geoalchemy2.shape import to_shape