Skip to content

Commit

Permalink
Try disable migrations with MIGRATION_MODULES
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 4, 2025
1 parent 774fc6d commit ab16330
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions app/app/settings/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,11 @@
}
}

LOGGING = {
'version': 1,
'handlers': {
'devnull': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': os.devnull,
},
},
'loggers': {
'django.db.backends.schema': {
'handlers': ['devnull'],
'propagate': True,
'level': 'INFO',
},
'': {
'handlers': ['devnull'],
'level': 'DEBUG',
}
}
}
class DisableMigrations:
def __contains__(self, item):
return True

def __getitem__(self, item):
return None

MIGRATION_MODULES = DisableMigrations()

0 comments on commit ab16330

Please sign in to comment.