patt/config_example/config.py

70 lines
2.3 KiB
Python
Raw Normal View History

2024-10-10 13:01:42 +02:00
#######################################################################
# Configuration of your django application
#######################################################################
2024-11-09 07:35:22 +01:00
#
# Themes library
#
# This defines the default theme, if no theme is set in the django parameters
DEFAULT_THEME = 'clear-green'
2020-01-31 12:50:42 +01:00
#
2024-10-10 13:01:42 +02:00
# Users library
2020-01-31 12:50:42 +01:00
#
2024-10-10 13:01:42 +02:00
# This enables or disables the self registration
2024-11-09 13:37:57 +01:00
# If you enable self registration (or you want to use it as superuser) it is recommended to configure "Django mail / smtp settings"
2024-10-10 13:01:42 +02:00
USERS_SELF_REGISTRATION = False
2024-11-09 13:37:57 +01:00
# If you enable password recovery (or you want to use it as superuser) it is recommended to configure "Django mail / smtp settings"
USERS_PASSWORD_RECOVERY = False
2024-11-09 07:35:22 +01:00
# This enables or disables the mail validation after self registration
USERS_MAIL_VALIDATION = True
# This enables or disables the account activation by an admin after self registration
USERS_ADMIN_ACTIVATION = True
# The timeout for password recovery and mail validation tokens send via email
PASSWORD_RESET_TIMEOUT = 60 * 60 * 3 # 3 hours
2021-01-19 15:52:50 +01:00
2024-10-10 13:01:42 +02:00
#
2024-11-09 07:35:22 +01:00
# Django mail / smtp settings
2024-10-10 13:01:42 +02:00
#
2024-11-09 07:35:22 +01:00
# The hostname of the smtp server
# EMAIL_HOST = "<smtp_host>"
# The port used for the smtp connection
# EMAIL_PORT = <port_number>
# The username for smtp authentication
# EMAIL_HOST_USER = "<smtp_user>"
# The password for smtp authentication
# EMAIL_HOST_PASSWORD = "<smtp_password>"
# The sender of piki emails
# EMAIL_FROM = "piki@<host>"
# Set to True, if TLS shall be used
# EMAIL_USE_TLS = False
# Set to True, if SSL shall be used
# EMAIL_USE_SSL = True
# The smtp timeout
# EMAIL_TIMEOUT =
# Define a ssl keyfile
# EMAIL_SSL_KEYFILE =
# Define an ssl certificate
# EMAIL_SSL_CERTFILE =
2024-10-10 13:01:42 +02:00
#
# Django
#
# This defines the mode of the running server
2021-01-19 15:52:50 +01:00
# SECURITY WARNING: don't run with debug turned on in production!
2024-10-10 13:01:42 +02:00
DEBUG = False
2021-01-19 15:52:50 +01:00
2024-10-10 13:01:42 +02:00
# This a the secret key for your application.
# SECURITY WARNING: don't run with a dummy secret in production! And don't let others read this key!
SECRET_KEY = None
2021-01-19 15:52:50 +01:00
2024-11-09 07:35:22 +01:00
# Define the administrators (for mail delivery)
ADMINS = [("PaTT", EMAIL_FROM), ]
2024-10-10 13:01:42 +02:00
# This defines the listener hostnames for your django server
2021-01-19 15:52:50 +01:00
# SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
2024-10-10 13:01:42 +02:00
# ALLOWED_HOSTS = ['<YOUR_SERVER_HOSTNAME>', ]
2020-01-31 12:50:42 +01:00
2024-10-10 13:01:42 +02:00
# This might be needed for usage in a docker environment
# CSRF_TRUSTED_ORIGINS = ['<YOUR_SERVER_URL>', ]