def validate_dependencies(): """ Check for installed apps, their versions and configuration options """ if not app_is_installed('mptt'): raise ImproperlyConfigured('django CMS requires django-mptt package.') if app_is_installed('reversion'): from reversion.admin import VersionAdmin if not hasattr(VersionAdmin, 'get_urls'): raise ImproperlyConfigured('django CMS requires newer version of reversion (VersionAdmin must contain get_urls method)')
def validate_dependencies(): """ Check for installed apps, their versions and configuration options """ if not app_is_installed('treebeard'): raise ImproperlyConfigured('django CMS requires django-treebeard. Please install it and add "treebeard" to INSTALLED_APPS.') if app_is_installed('reversion'): from cms.utils.reversion_hacks import ModelAdmin if not hasattr(ModelAdmin, 'get_urls'): raise ImproperlyConfigured('django CMS requires newer version of reversion (VersionAdmin must contain get_urls method)')
def validate_dependencies(): """ Check for installed apps, their versions and configuration options """ if not app_is_installed('treebeard'): raise ImproperlyConfigured( 'django CMS requires django-treebeard. Please install it and add "treebeard" to INSTALLED_APPS.' )
def validate_dependencies(): """ Check for installed apps, their versions and configuration options """ if not app_is_installed('treebeard'): raise ImproperlyConfigured('django CMS requires django-treebeard. Please install it and add "treebeard" to INSTALLED_APPS.')