Skip to content
Snippets Groups Projects
Select Git revision
  • c0dfb38a6957af8bb0040d7e68db7037754a08ee
  • master default protected
  • pw-autocomplete-off
  • redis-rate-limits
  • typehints
  • incremental-sync
  • test_instance_path
  • consistent_strings
  • qol_edits
  • v1.2.x
  • v1.x.x
  • v1.1.x
  • feature_invite_validuntil_minmax
  • Dockerfile
  • pylint_disable_consider-using-f-string
  • v1.0.x
  • roles-recursive-cte
  • v2.2.0
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v1.2.0
  • v1.1.2
  • v1.1.1
  • v1.0.2
  • v1.1.0
  • v1.0.1
  • v1.0.0
  • v0.3.0
  • v0.2.0
  • v0.1.5
  • v0.1.4
  • v0.1.2
33 results

test_utils.py

Blame
  • Forked from uffd / uffd
    Source project has a limited visibility.
    local_settings.docker-example.py 1.15 KiB
    # Dies ist ein Beispiel für eine local_settings.py in einem Docker-Deployment.
    # ruff: noqa: ERA001
    IS_ADMIN = True
    IS_API = True
    IS_BACKOFFICE = True
    IS_FRONTEND = False
    
    ALLOWED_HOSTS = ['hub.rc3.world']
    
    LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'filters': {},
        'formatters': {
            'verbose': {
                'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}',
                'style': '{',
            },
            'simple': {
                'format': '{levelname} {message}',
                'style': '{',
            },
        },
        'handlers': {
            'file': {
                'level': 'INFO',
                'class': 'logging.handlers.RotatingFileHandler',
                'maxBytes': 50000000,
                'backupCount': 2,
                'filename': '/data/django.log',  # Pfad aus Sicht des Docker-Containers!
                'formatter': 'verbose',
            },
            'console': {
                'level': 'INFO',
                'class': 'logging.StreamHandler',
                'formatter': 'simple',
            },
        },
        'loggers': {
            'django': {
                'handlers': ['file', 'console'],
                'level': 'INFO',
            },
        },
    }