Is it possible to set a separate database to experiment with the demo celeri?
I have a project with many databases in the configuration and do not want the DJGongoCalary to use the default one.
I would be good if I can still use the Digenga sealery admin pages and read the results stored in this separate database):
It has not been specifically tested with celery, but if it does not work for some reason, then this druggo- A bug in Elri (or Dijanco only) be fixed.
Your router looks like this:
Category Celery Rotter (object): "Root cellary model to isolate DB." APPS = (Model from 'Django', # combo. Transport Dozon, if you are using DJGO as message transport. DJ_LLIAS = 'Celery' def DB_Forad (self, model, ** signal): If Model. _meta.app_label in self.APPS: return self.DB_ILAS returns no Deaf DB_for_litet (self, model, ** sign): If the model._meta.app_label in itself. APPS: return self.DB_ILS return Return no DRF permission (self, Obj1, Obj2, ** NO Ket): obj1._meta.app_label in self.APPS and obj2._meta.app_label in self.APPS: return refund any def allow_syncdb (self, dB, model): if DB == itself DB_LAILES: # only Insert the model from Apples to cellar table (and south for # migrations). Return Model. _meta.app_label self.apps + ('south',) Alif model. _meta.app_label in self. APPS: # Do not insert a cellular model anywhere Any returning then add it to your settings:
DATABASE_ROUTERS = ['path.to.CeleryRouter']
Comments
Post a Comment