Fix favicon static files and logging
This commit is contained in:
@ -288,17 +288,17 @@ LOGGING = {
|
|||||||
"class": "logging.NullHandler",
|
"class": "logging.NullHandler",
|
||||||
"level": LOG_LEVEL,
|
"level": LOG_LEVEL,
|
||||||
},
|
},
|
||||||
"file": {
|
'sql': {
|
||||||
"class": "logging.handlers.RotatingFileHandler",
|
'class': 'logging.handlers.RotatingFileHandler',
|
||||||
"filename": "".join([LOG_FILE_PATH, "vrobbler.log"]),
|
'filename': ''.join([LOG_FILE_PATH, 'vrobbler_sql.', LOG_TYPE]),
|
||||||
"formatter": LOG_TYPE,
|
'formatter': LOG_TYPE,
|
||||||
"level": LOG_LEVEL,
|
'level': LOG_LEVEL,
|
||||||
},
|
},
|
||||||
"requests_file": {
|
'file': {
|
||||||
"class": "logging.handlers.RotatingFileHandler",
|
'class': 'logging.handlers.RotatingFileHandler',
|
||||||
"filename": "".join([LOG_FILE_PATH, "vrobbler_requests.log"]),
|
'filename': ''.join([LOG_FILE_PATH, 'vrobbler.', LOG_TYPE]),
|
||||||
"formatter": LOG_TYPE,
|
'formatter': LOG_TYPE,
|
||||||
"level": LOG_LEVEL,
|
'level': LOG_LEVEL,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"loggers": {
|
"loggers": {
|
||||||
@ -310,12 +310,13 @@ LOGGING = {
|
|||||||
"django.db.backends": {"handlers": ["null"]},
|
"django.db.backends": {"handlers": ["null"]},
|
||||||
"django.server": {"handlers": ["null"]},
|
"django.server": {"handlers": ["null"]},
|
||||||
"vrobbler": {
|
"vrobbler": {
|
||||||
"handlers": ["console", "file"],
|
"handlers": ["file"],
|
||||||
"propagate": True,
|
"propagate": True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if DEBUG:
|
LOG_TO_CONSOLE = os.getenv("VROBBLER_LOG_TO_CONSOLE", False)
|
||||||
# We clear out a db with lots of games all the time in dev
|
if LOG_TO_CONSOLE:
|
||||||
DATA_UPLOAD_MAX_NUMBER_FIELDS = 3000
|
LOGGING['loggers']['django']['handlers'] = ["console"]
|
||||||
|
LOGGING['loggers']['vrobbler']['handlers'] = ["console"]
|
||||||
|
|||||||
BIN
vrobbler/static/images/apple-touch-icon.png
Normal file
BIN
vrobbler/static/images/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
vrobbler/static/images/favicon.ico
Normal file
BIN
vrobbler/static/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@ -8,6 +8,7 @@
|
|||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="shortcut icon" type="image/png" href="{% static 'images/favicon.ico' %}"/>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||||||
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
|
||||||
@ -165,8 +166,7 @@
|
|||||||
</style>
|
</style>
|
||||||
{% block head_extra %}{% endblock %}
|
{% block head_extra %}{% endblock %}
|
||||||
|
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="{% static 'images/apple-touch-icon.png' %}">
|
||||||
<!-- Place favicon.ico in the root directory -->
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
||||||
|
|||||||
Reference in New Issue
Block a user