swh.web.utils.management.commands.rename_app module#

A Django Management Command to rename existing Django Applications.

Adapted from odwyersoftware/django-rename-app

class swh.web.utils.management.commands.rename_app.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]#

Bases: BaseCommand

help = 'Renames a Django Application. Usage rename_app [old_app_name] [new_app_name]'#
add_arguments(parser)[source]#

Entry point for subclassed commands to add custom arguments.

handle(old_app_name, new_app_name, *args, **options)[source]#

The actual logic of the command. Subclasses must implement this method.