Python How To Execute A Django Or Sql Query After Clicking The Toggle

Python How To Execute A Django Or Sql Query After Clicking The Toggle