You can configure byro in two different ways: using configuration files or environment variables. You can combine those two options, and their precedence is in this order:

  1. Environment variables
  2. Configuration files
    • The configuration file in the environment variable BYRO_CONFIG_FILE if present, or:
    • The following three configuration files in this order:
      • The configuration file byro.cfg in the src directory, next to the byro.example.cfg file.
      • The configuration file ~/.byro.cfg in the home of the executing user.
      • The configuration file /etc/byro/byro.cfg
  3. Sensible defaults

This page explains the options by configuration file section and notes the corresponding environment variable next to it. A configuration file looks like this:

data = /var/byro/data
media = /var/byro/data/media
logs = /var/byro/data/logs

debug = False
url =

name = byro
user = byro
password = byro
host = localhost
port = 5432

from = [email protected]
host = localhost
port = 25
user = admin
password = something
tls = False
ssl = True

The filesystem section


  • The data option describes the path that is the base for the media files directory, and where byro will save log files. Unless you have a compelling reason to keep those files apart, setting the data option is the easiest way to configure byro.
  • Environment variable: BYRO_DATA_DIR
  • Default: A directory called data next to byro’s


  • The media option sets the media directory that contains user generated files. It needs to be writeable by the byro process.
  • Environment variable: BYRO_FILESYSTEM_MEDIA
  • Default: A directory called media in the data directory (see above).


  • The logs option sets the log directory that contains logged data. It needs to be writeable by the byro process.
  • Environment variable: BYRO_FILESYSTEM_LOGS
  • Default: A directory called logs in the data directory (see above).


  • The statics option sets the directory that contains static files. It needs to be writeable by the byro process. byro will put files there during the collectstatic command.
  • Environment variable: BYRO_FILESYSTEM_STATIC
  • Default: A directory called static.dist next to byro’s

The site section


  • Decides if byro runs in debug mode. Please use this mode for development and debugging, not for live usage.
  • Environment variable: BYRO_DEBUG
  • Default: True if you’re executing runserver, False otherwise. Never run a production server in debug mode.


  • This value will appear wherever byro needs to render full URLs (for example in emails and), and set the appropriate allowed hosts variables.
  • Environment variable: BYRO_SITE_URL
  • Default: http://localhost


  • Every Django application has a secret that Django uses for cryptographic signing. You do not need to set this variable – byro will generate a secret key and save it in a local file if you do not set it manually.
  • Default: None

The database section


  • The database’s name.
  • Environment variable: BYRO_DB_NAME
  • Default: ''


  • The database user.
  • Environment variable: BYRO_DB_USER
  • Default: ''


  • The database password.
  • Environment variable: BYRO_DB_PASS
  • Default: ''


  • The database host, or the socket location, as needed.
  • Environment variable: BYRO_DB_HOST
  • Default: ''


  • The database port.
  • Environment variable: BYRO_DB_PORT
  • Default: ''

The mail section


  • The fall-back sender address, e.g. for when byro sends event independent emails.
  • Environment variable: BYRO_MAIL_FROM
  • Default: admin@localhost


  • The email server host address.
  • Environment variable: BYRO_MAIL_HOST
  • Default: localhost


  • The email server port.
  • Environment variable: BYRO_MAIL_PORT
  • Default: 25


  • The user account for mail server authentication, if needed.
  • Environment variable: BYRO_MAIL_USER
  • Default: ''


  • The password for mail server authentication, if needed.
  • Environment variable: BYRO_MAIL_PASSWORD
  • Default: ''


  • Should byro use TLS when sending mail? Please choose either TLS or SSL.
  • Environment variable: BYRO_MAIL_TLS
  • Default: False


  • Should byro use SSL when sending mail? Please choose either TLS or SSL.
  • Environment variable: BYRO_MAIL_SSL
  • Default: False

The logging section


  • The email address (or addresses, comma separated) to send system logs to.
  • Environment variable: BYRO_LOGGING_EMAIL
  • Default: ''


  • The log level to start sending emails at. Any of [DEBUG, INFO, WARNING, ERROR, CRITICAL].
  • Environment variable: BYRO_LOGGING_EMAIL_LEVEL
  • Default: 'ERROR'

The locale section


  • The system’s default locale.
  • Environment variable: BYRO_LANGUAGE_CODE
  • Default: 'de'


  • The system’s default time zone as a pytz name.
  • Environment variable: BYRO_TIME_ZONE
  • Default: 'UTC'