<s> from . settings import RECOMMENDS_STORAGE_DATABASE_ALIAS <EOL> class RecommendsRouter ( object ) : <EOL> def db_for_read ( self , model , ** hints ) : <EOL> "<STR_LIT>" <EOL> if model . _meta . app_label == '<STR_LIT>' : <EOL> return RECOMMENDS_STORAGE_DATABASE_ALIAS <EOL> return None <EOL> def db_for_write ( self , model , ** hints ) : <EOL> "<STR_LIT>" <EOL> if model . _meta . app_label == '<STR_LIT>' : <EOL> return RECOMMENDS_STORAGE_DATABASE_ALIAS <EOL> return None <EOL> def allow_relation ( self , obj1 , obj2 , ** hints ) : <EOL> "<STR_LIT>" <EOL> if obj1 . _meta . app_label == '<STR_LIT>' or obj2 . _meta . app_label == '<STR_LIT>' : <EOL> return True <EOL> return None <EOL> def allow_syncdb ( self , db , model ) : <EOL> "<STR_LIT>" <EOL> if db == RECOMMENDS_STORAGE_DATABASE_ALIAS : <EOL> return model . _meta . app_label == '<STR_LIT>' <EOL> elif model . _meta . app_label == '<STR_LIT>' : <EOL> return False <EOL> return None </s>
