from minecraft_manager.models import Application def get_application(app_id): try: return Application.objects.get(id=app_id) except: return None