def det_LU_decomposition(self):
        if not self.is_square:
            raise NonSquareMatrixError()
        if not self:
            return S.One

        M, n = self.copy(), self.rows
        p, prod = [], 1
        l, u, p = M.LUdecomposition()
        if len(p) % 2:
            prod = -1

        for k in range(n):
            prod = prod*u[k, k]*l[k, k]

        return prod.expand()
minimal: django-admin can't execute user commands, even if settings are provided as argument
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.det_LU_decomposition--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_scripts/tests.py/DjangoAdminMinimalSettings.test_custom_command_with_settings