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 fil

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

2019-12-08 Thread Franz Ulenaers
i get a problem with the 'formatter' : 'standard' Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "/usr/lib/python3.7/logging/config.py", line 700, in configure_handler formatter = self.config['formatters'][formatter

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

2019-12-08 Thread Franz Ulenaers
it works when i remove the formatter line ! Op zondag 8 december 2019 09:44:15 UTC+1 schreef Franz Ulenaers: > > i get a problem with the 'formatter' : 'standard' > Watching for file changes with StatReloader > Exception in thread django-main-thread: > Traceback (most recent call last): > File "

Re: Postgres database users and roles for DJango App

2019-12-08 Thread John McClain
I think PUBLIC SCHEMA is just referring to the fact django apps are built for purpose in the first place... Try this here: https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/ It walks you through the auth install and later introduces you to the process of adding users...

Re: django.db.utils.ProgrammingError: relation "django_content_type" already exists

2019-12-08 Thread Integr@te System
Hi issuer, Check if your app development in localhost whether fall into any restricted case relate to Django content type: https://docs.djangoproject.com/en/3.0/topics/db/multi-db/ On Sun, Dec 8, 2019, 07:08 Ram wrote: > Hi, > > As a next step I tried the following but the result is is same.

Re: django.db.utils.ProgrammingError: relation "django_content_type" already exists

2019-12-08 Thread Ram
Thank you for the pointer. I've solved this issue few minutes back as follows. 1. Restore the database in Postgres database ( I used pgAdmin tool for this ) 2. python manage.py loaddata 3. Dropping django_migrations table from database ( I used pgAdmin tool for this ) 4. python manage.py makemig

Re: ''workon' is not recognized as an internal or external command, operable program or batch file'

2019-12-08 Thread Hima Bindu chowdary
I really appreciate the help @khaled On Sat, 7 Dec, 2019, 8:18 PM Khaleel Ahmed H. M. Shariff, < khaleelahme...@gmail.com> wrote: > Hi Hima, > May Peace, Blessings & Mercy of Almighty God be on you! > workon is a module. do a *pip install workon* > > If you still get the same message. You could e

Re: ''workon' is not recognized as an internal or external command, operable program or batch file'

2019-12-08 Thread Khaleel Ahmed H. M. Shariff
@Hima It is my pleasure sister dear. God Bless You! God Bless India!! -- Love & Regards Dr. Khaleel Ahmed H. M. Managing Director, Tanzanite Realty India Private Limited +91-9845007864 +91-7829777864 --- Human Life is Preciou