Answers for "how to log to .log in django"

1

django logger

import logging

logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

# USE THIS 
logger.debug('hello')
Posted by: Guest on March-13-2021
0

login system in django

LOGOUT_REDIRECT_URL = 'your_url'
Posted by: Guest on January-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language