Logger creation simplified
This commit is contained in:
parent
e093c48e91
commit
997594e371
@ -8,11 +8,7 @@ from mycreole import url_upload
|
|||||||
from mycreole import parameter
|
from mycreole import parameter
|
||||||
from themes import color_icon_url
|
from themes import color_icon_url
|
||||||
|
|
||||||
try:
|
logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
|
||||||
from config import APP_NAME as ROOT_LOGGER_NAME
|
|
||||||
except ImportError:
|
|
||||||
ROOT_LOGGER_NAME = 'root'
|
|
||||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
|
||||||
|
|
||||||
NEW_ATTACHMENT_UID = 'new_attachment'
|
NEW_ATTACHMENT_UID = 'new_attachment'
|
||||||
|
|
||||||
|
6
views.py
6
views.py
@ -14,11 +14,7 @@ import stringtools
|
|||||||
import themes
|
import themes
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
|
|
||||||
try:
|
logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
|
||||||
from config import APP_NAME as ROOT_LOGGER_NAME
|
|
||||||
except ImportError:
|
|
||||||
ROOT_LOGGER_NAME = 'root'
|
|
||||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_next(request):
|
def get_next(request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user