forked from rc/aircox
		
	suite de rc/aircox#122 en suivant les conventions de nommage. Co-authored-by: Christophe Siraut <d@tobald.eu.org> Reviewed-on: rc/aircox#126 Co-authored-by: Chris Tactic <chris@tacticasbl.be> Co-committed-by: Chris Tactic <chris@tacticasbl.be>
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
import os
 | 
						|
 | 
						|
from .base import *
 | 
						|
 | 
						|
try:
 | 
						|
    from .settings import *
 | 
						|
except ImportError:
 | 
						|
    pass
 | 
						|
 | 
						|
DEBUG = True
 | 
						|
 | 
						|
LOCALE_PATHS = ["aircox/locale", "aircox_streamer/locale"]
 | 
						|
 | 
						|
LOGGING = {
 | 
						|
    "version": 1,
 | 
						|
    "disable_existing_loggers": False,
 | 
						|
    "formatters": {
 | 
						|
        "timestamp": {
 | 
						|
            "format": "{asctime} {module} {levelname} {message}",
 | 
						|
            "style": "{",
 | 
						|
        },
 | 
						|
    },
 | 
						|
    "handlers": {
 | 
						|
        "console": {
 | 
						|
            "class": "logging.StreamHandler",
 | 
						|
            "formatter": "timestamp",
 | 
						|
        },
 | 
						|
    },
 | 
						|
    "loggers": {
 | 
						|
        "root": {
 | 
						|
            "handlers": ["console"],
 | 
						|
            "level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
 | 
						|
        },
 | 
						|
        "aircox": {
 | 
						|
            "handlers": ["console"],
 | 
						|
            "level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
 | 
						|
        },
 | 
						|
        "aircox.commands": {
 | 
						|
            "handlers": ["console"],
 | 
						|
            "level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
 | 
						|
        },
 | 
						|
        "aircox.test": {
 | 
						|
            "handlers": ["console"],
 | 
						|
            "level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
 | 
						|
        },
 | 
						|
    },
 | 
						|
}
 | 
						|
 | 
						|
CACHES = {
 | 
						|
    "default": {
 | 
						|
        "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
 | 
						|
    }
 | 
						|
}
 |