Python Forum
My Django 2.0.6 logging is not working while product merging
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Django 2.0.6 logging is not working while product merging
#1
Hi Experts,

I am facing a strange issue in my application built on Django 2.0.6+MySql 5.7+Python3.6.

I am trying to merge two products with same name so that I can remove duplicacy.

But when I click on Preview button, page is refreshed and no any trace in logs.

In my settings.py DEBUG is already True and following logger setting I am using-

import logging
# send server errors to admin
ADMINS = (('admin', '[email protected]'),)
MANAGERS = ADMINS

# Logging configuration for production
LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '%(asctime)s [%(levelname)s] %(filename)s:%(lineno)s %(funcName)s() : %(message)s'
        },
        'simple': {
            'format': '%(asctime)s [%(levelname)s] : %(message)s'
        },
    },
    'handlers': {
        'file': {
            'level': 'ERROR',
            'class': 'logging.FileHandler',
            'filename': 'error.log',
            'formatter': 'verbose'
        },
        'mail_admins': {
            'level': 'ERROR',
            'class': 'django.utils.log.AdminEmailHandler',
            'formatter': 'simple'
        },
    },
    'loggers': {
        'django': {
            'handlers': ['file'],
            'level': 'ERROR',
            'propagate': True,
        },
        'django.request': {
            'handlers': ['mail_admins'],
            'level': 'ERROR',
            'propagate': True,
        },
    },
}
Am I missing anything here because I am not seeing any info,warning or error in logs?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  All product links to products on a website MarionStorm 0 1,056 Jun-02-2022, 11:17 PM
Last Post: MarionStorm
  <title> django page title dynamic and other field (not working) lemonred 1 2,069 Nov-04-2021, 08:50 PM
Last Post: lemonred
  css not working in Django mp3909 3 3,713 Jul-06-2020, 02:34 PM
Last Post: mp3909
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,246 Jun-30-2019, 12:21 AM
Last Post: scidam
  Need help to get product details using BeautifulSoup+Python3.6! PrateekG 2 2,836 Jun-27-2018, 08:52 AM
Last Post: PrateekG
  Unable to fetch product url using BeautifulSoup with Python3.6 PrateekG 6 4,142 Jun-05-2018, 05:49 PM
Last Post: PrateekG
  django manage.py startserver - not working lewashby 3 18,215 Nov-24-2016, 11:24 PM
Last Post: lewashby

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020