Ticket #7198: sql_no_models_r7520.patch

File sql_no_models_r7520.patch, 679 bytes (added by George Vilches, 17 years ago)

Patch to allow management commands against apps with no models, against r7520

  • django/core/management/base.py

     
    128128        if not app_labels:
    129129            raise CommandError('Enter at least one appname.')
    130130        try:
    131             app_list = [models.get_app(app_label) for app_label in app_labels]
     131            app_list = [models.get_app(app_label, emptyOK=True) for app_label in app_labels]
    132132        except (ImproperlyConfigured, ImportError), e:
    133133            raise CommandError("%s. Are you sure your INSTALLED_APPS setting is correct?" % e)
    134134        output = []
Back to Top