feat: Add logging config
This commit is contained in:
parent
e2e3a77fd9
commit
4bcfd6b2ee
@ -19,4 +19,8 @@ media=./media
|
||||
[mail]
|
||||
console-only=true
|
||||
|
||||
[logging]
|
||||
app_log_level=INFO
|
||||
django_log_level=INFO
|
||||
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
import logging
|
||||
logger = logging.getLogger("fellchensammlung")
|
@ -1,3 +1,5 @@
|
||||
import logging
|
||||
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.shortcuts import render, redirect
|
||||
from django.urls import reverse
|
||||
@ -7,6 +9,7 @@ from django.utils import translation
|
||||
from .mail import mail_admins_new_report
|
||||
from notfellchen import settings
|
||||
|
||||
from fellchensammlung import logger
|
||||
from fellchensammlung.models import AdoptionNotice, Text, Animal, Rule, Image, Report, ModerationAction, \
|
||||
Member
|
||||
from .forms import AdoptionNoticeForm, AnimalForm, ImageForm, ReportForm
|
||||
|
Loading…
Reference in New Issue
Block a user