Piki is a minimal wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #######################################################################
  2. # Configuration of your django application
  3. #######################################################################
  4. #
  5. # Piki Setting
  6. #
  7. # The root page to be used
  8. STARTPAGE = "startpage"
  9. # Activate content management system (view)
  10. # CMS_MODE = True
  11. #
  12. # Themes library
  13. #
  14. # This defines the default theme, if no theme is set in the django parameters
  15. DEFAULT_THEME = 'clear-teal'
  16. #
  17. # Users library
  18. #
  19. # This enables or disables the self registration
  20. # If you enable self registration (or you want to use it as superuser) it is recommended to configure "Django mail / smtp settings"
  21. USERS_SELF_REGISTRATION = False
  22. # If you enable password recovery (or you want to use it as superuser) it is recommended to configure "Django mail / smtp settings"
  23. USERS_PASSWORD_RECOVERY = False
  24. # This enables or disables the mail validation after self registration
  25. USERS_MAIL_VALIDATION = True
  26. # This enables or disables the account activation by an admin after self registration
  27. USERS_ADMIN_ACTIVATION = True
  28. # The timeout for password recovery and mail validation tokens send via email
  29. PASSWORD_RESET_TIMEOUT = 60 * 60 * 3 # 3 hours
  30. #
  31. # Django mail / smtp settings
  32. #
  33. # The hostname of the smtp server
  34. # EMAIL_HOST = "<smtp_host>"
  35. # The port used for the smtp connection
  36. # EMAIL_PORT = <port_number>
  37. # The username for smtp authentication
  38. # EMAIL_HOST_USER = "<smtp_user>"
  39. # The password for smtp authentication
  40. # EMAIL_HOST_PASSWORD = "<smtp_password>"
  41. # The sender of piki emails
  42. # EMAIL_FROM = "piki@<host>"
  43. # Set to True, if TLS shall be used
  44. # EMAIL_USE_TLS = False
  45. # Set to True, if SSL shall be used
  46. # EMAIL_USE_SSL = True
  47. # The smtp timeout
  48. # EMAIL_TIMEOUT =
  49. # Define a ssl keyfile
  50. # EMAIL_SSL_KEYFILE =
  51. # Define an ssl certificate
  52. # EMAIL_SSL_CERTFILE =
  53. #
  54. # Django
  55. #
  56. # This defines the mode of the running server
  57. # SECURITY WARNING: don't run with debug turned on in production!
  58. DEBUG = False
  59. # This a the secret key for your application.
  60. # SECURITY WARNING: don't run with a dummy secret in production! And don't let others read this key!
  61. SECRET_KEY = None
  62. # Define the administrators (for mail delivery)
  63. ADMINS = [("Piki", EMAIL_FROM), ]
  64. # This defines the listener hostnames for your django server
  65. # SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
  66. # ALLOWED_HOSTS = ['<YOUR_SERVER_HOSTNAME>', ]
  67. # This might be needed for usage in a docker environment
  68. # CSRF_TRUSTED_ORIGINS = ['<YOUR_SERVER_URL>', ]