from application import db, app from application.models import AllowedPlate with app.app_context(): db.session.add(AllowedPlate("MUN389")) db.session.commit()