Ticket #7198: sql_no_models_r11600.patch

File sql_no_models_r11600.patch, 680 bytes (added by gav, 5 years ago)

Updated the patch since it's been brought up again.

  • django/core/management/base.py

     
    278278        if not app_labels:
    279279            raise CommandError('Enter at least one appname.')
    280280        try:
    281             app_list = [models.get_app(app_label) for app_label in app_labels]
     281            app_list = [models.get_app(app_label, emptyOK=True) for app_label in app_labels]
    282282        except (ImproperlyConfigured, ImportError), e:
    283283            raise CommandError("%s. Are you sure your INSTALLED_APPS setting is correct?" % e)
    284284        output = []
Back to Top