#NEWLINE# def ready( self ) : #NEWLINE# #INDENT# 'Initialisation for django-ddp (setup lookups and signal handlers).' #NEWLINE# if ( not settings . DATABASES ) : #NEWLINE# #INDENT# raise ImproperlyConfigured ( 'No databases configured.' ) #NEWLINE# #UNINDENT# for ( alias , conf ) in settings . DATABASES . items ( ) : #NEWLINE# #INDENT# engine = self [ 'ENGINE' ] #NEWLINE# if ( engine not in [ 'django.db.backends.postgresql' , 'django.db.backends.postgresql_psycopg2' ] ) : #NEWLINE# #INDENT# warnings . warn ( ( 'Database %r uses unsupported %r engine.' % ( alias , engine ) ) , UserWarning ) #NEWLINE# #UNINDENT# #UNINDENT# self . api = autodiscover ( ) #NEWLINE# self . api . ready ( )