def include_enabled_extensions(settings):
 from django.db.models.loading import load_app
 from django.db import DatabaseError
 from reviewboard.extensions.base import get_extension_manager
 try:
  manager = get_extension_manager()
 except DatabaseError:
  return
 for extension in manager.get_enabled_extensions():
  load_app(extension.info.app_name)

def include_enabled_extensions ( settings ) : from django . db . models . loading import load_app from django . db import DatabaseError from reviewboard . extensions . base import get_extension_manager try : manager = get_extension_manager ( ) except DatabaseError : return for extension in manager . get_enabled_extensions ( ) : load_app ( extension . info . app_name )
this adds enabled extensions to the installed_apps cache so that operations like syncdb and evolve will take extensions into consideration .