Django file logging - rotate files on every day and max file size

2019-12-08 Thread Arulselvam K
Hi, How do we configure log settings so that every day generates new log file and also based on max file size? I am able to use "RotatingFileHandler" to rotates files based on max file size with following settings. 'handlers': { 'file': { 'level': 'DEBUG', 'backupCount': 10, # how many backup

Re: Fixtures for django auth groups

2019-12-04 Thread Arulselvam K
I solved the issue, Thanks lot Tim Grahma. Regards, Arul On Tue, 3 Dec 2019 at 22:41, Tim Graham wrote: > Take a look at > https://docs.djangoproject.com/en/stable/howto/initial-data/. > > On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: >> >> I

Fixtures for django auth groups

2019-12-03 Thread Arulselvam K
I want to create fixtures for auth groups to get some preloaded auth groups. Kindly educate me on how to create fixtures fixtures for built in django models Thanks and regards, Arulselvam K -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: facing issue on unit test

2019-09-08 Thread Arulselvam K
ase is empty. > > On Tue, 13 Aug 2019 at 00:34, Arulselvam K > wrote: > >> Have hosted the code @ "https://github.com/tbone230590/plib; >> Here is the problem I have two models Book and IssuedBook, IssuedBook >> have foreign key relation to Book object.Those models a

facing issue on unit test

2019-08-12 Thread Arulselvam K
Have hosted the code @ "https://github.com/tbone230590/plib; Here is the problem I have two models Book and IssuedBook, IssuedBook have foreign key relation to Book object.Those models are defined @ "/api/data/models" I have unit tests for testing those models and are available @