Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Allows multiple apps to override the same management command in Django

Project Description

© 2014-2017 Thomas Khyn

MCMO stands for ‘Management Command Multiple Override’. This django app allows multiple apps to override the same management command without evicting any.

Supports Django 1.8 to 1.11 and matching Python 2 and 3 versions.


As straightforward as it can be, using pip:

pip install django-mcmo


In your file, replace the line:

from django.core import management


from mcmo import management

You can now use applications that concurrently define overrides for django.core management commands. Both commands will be called.

For example, if you are using djinga and django-extra_keywords, which both override Django’s makemessages management command, both commands from both applications will be called subsequently.

The first command which will be called will be the one relative to the application in the latest position in the INSTALLED_APPS.

Alternative usage

In your is automatically generated (e.g. if you are using buildout with djangorecipebook or djangorecipe), simply make sure that the statement:

import mcmo

is executed before calling

Importing the package patches the module, which functions are then enabled for multiple-override support.


The same-name overrides should all derive from the same command class, or at least from on of Django’s base command classes (AppCommand or LabelCommand).

django-mcmo will raise a warning (but the execution will carry on) in case of subclassing inconsistencies. For example, if the command cmd in app1 inherits from AppCommand and the command cmd in app2 inherits from LabelCommand. Indeed, as only one command is likely to be executed in that situation, the obtained results may not be consistent as it will depend on the relative position of the apps in INSTALLED_APPS or raise an exception regarding arguments presence, absence or type.

In practice, same-name commands will only be met when two 3rd party apps override a Django core management command. They will therefore derive from the same Command base class, and cause no issue in 99.9% of the cases.

django-mcmo may also emit warning messages if the same option is explicitly added in the same command of two distinct apps with command classes not being subclasses of each other.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.8 kB) Copy SHA256 Hash SHA256
Source None May 21, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting