WIP: Changed annotation syntax to properties and created mutable user_properties #31

Closed
rskthomas wants to merge 27 commits from rework/properties into main
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 0c837416e1 - Show all commits

View file

@ -4,6 +4,7 @@ DEMO=true
DEBUG=true
ALLOWED_HOSTS=localhost,localhost:8000,127.0.0.1,
DEVICE_LOG_PATH=/tmp
STATIC_ROOT=/tmp/static/
MEDIA_ROOT=/tmp/media/
EMAIL_HOST="mail.example.org"

View file

@ -65,6 +65,8 @@ ENABLE_EMAIL = config("ENABLE_EMAIL", default=True, cast=bool)
EVIDENCES_DIR = config("EVIDENCES_DIR", default=os.path.join(BASE_DIR, "db"))
DEVICE_LOG_PATH = config("DEVICE_LOG_PATH", default="/tmp")
# Application definition
INSTALLED_APPS = [
@ -224,7 +226,7 @@ LOGGING = {
'device_log_file': {
'level': 'INFO',
Review

Creo que es mejor poner el directorio donde reside device_changes.log en una variable definida en el .env y por defecto poner algo como "/tmp"

Creo que es mejor poner el directorio donde reside device_changes.log en una variable definida en el .env y por defecto poner algo como "/tmp"
'class': 'logging.FileHandler',
'filename': '/var/log/device_changes.log',
'filename': DEVICE_LOG_PATH + "/device_changes.log",
'formatter': 'verbose',
},
},