'Returns the module containing the models for the given app_label. If
the app has no models in it and \'emptyOK\' is True, returns None.'

def get_app(self, app_label, emptyOK=False):

    self._populate()
    self.write_lock.acquire()
    try:
        for app_name in settings.INSTALLED_APPS:
            if (app_label == app_name.split('.')[(-1)]):
                mod = self.load_app(app_name, False)
                if (mod is None):
                    if emptyOK:
                        return None
                else:
                    return mod
        raise ImproperlyConfigured(('App    with    label    %s    could    not    be    found' % app_label))
    finally:
        self.write_lock.release()
