您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

101 行
2.8 KiB

  1. # This file contains all the major settings regarding
  2. # You must setup this file before running the application
  3. # There are also settings for multiple files
  4. # You must save this file as "defs.py" to make it live
  5. # =================================================================================
  6. #
  7. # [IMPORTANT] - Please set your default db_name
  8. #
  9. default_db_name = ''
  10. db_password = 'some_password'
  11. #
  12. # map of database names to account names
  13. # if you are running multiple database instances, then you can set "account names" to each database
  14. # account names can be same as db_names - it is only to mask database names for security reasons
  15. # un-comment this if you want to use db_names
  16. #
  17. #db_name_map = {'accountname':'dbname'}
  18. #
  19. # if you are running multiple applications on one server, then you can use this to map a domain name to an
  20. # database name. comment this if you do not want to map domain names
  21. #
  22. #domain_name_map = {'example.com':'dbname'}
  23. #
  24. # Path to your MySQL command account, if not directly "mysql"
  25. #
  26. mysql_path = ''
  27. #
  28. # Attachment Files Path: This is where attachments are stored. Attachments are not stored in the database
  29. # as they can incease backup sizes.
  30. # It is best to keep this folder outside your www folder so that it is not accessible directly
  31. #
  32. files_path = 'user_files'
  33. #
  34. # Modules path: This is where the module files are stored
  35. # If this is blank, your modules files will be saved in the 'cgi-bin' forder
  36. #
  37. modules_path = ''
  38. #
  39. # Developer Mode: If the developer_mode is set, all updates to DocTypes, Pages and Search Criteria will be
  40. # saved to the modules folder
  41. #
  42. developer_mode = 0
  43. auto_cache_clear = 0
  44. #
  45. # Time Zone: Useful if your users are across timezones
  46. #
  47. user_timezone = 'Asia/Calcutta'
  48. #
  49. # Default Mail Server Settings
  50. # If mail server settings are not set in the Control Panel, they are picked from here
  51. #
  52. mail_server = None
  53. mail_login = None
  54. mail_password = None
  55. mail_port = None
  56. use_ssl = None
  57. #
  58. # Email Batching Settings
  59. # Batching of emails is a good idea because sending an email takes a longer time in the middle of a transaction
  60. # and locks the table. If emails are batched, you need to setup cron to call
  61. # webnotes.utils.email_lib.EmailQueue().flush()
  62. #
  63. batch_emails = 0
  64. # email_queue = 'email_queue.py'
  65. #
  66. # Logging Settings: Log using the python logger
  67. # Error levels (in string): 'login.DEBUG', 'login.INFO', 'login.WARNING', 'logging.ERROR', 'login.CRITICAL'
  68. #
  69. log_file_name = 'logs/error_log.txt'
  70. debug_log_dbs = []
  71. log_level = 'logging.INFO'
  72. log_file_size = 5000
  73. log_file_backup_count = 5
  74. #
  75. # Backup Settings
  76. #
  77. # where the dumps will be stored
  78. backup_path = '/backups'
  79. # where the latest dump will show up so that it can be
  80. # downloaded from the web
  81. backup_link_path = '/var/www/wnframework/backups'
  82. # url to be emailed to the "System Manager" Role to download
  83. # the backup
  84. backup_url = 'http://localhost/backups'