django browser log code example
Example 1: django logger
import logging
logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
# USE THIS
logger.debug('hello')
Example 2: django log in and log out page
django log in and log out page