Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

119 rindas
3.2 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. #
  44. # Auto Clear Cache: If set, automatically clears cache on refresh
  45. #
  46. auto_cache_clear = 0
  47. #
  48. # Admin Email Notification: If the admin_email_notification is set,
  49. # then only sent notification email from the system
  50. #
  51. admin_email_notification = 0
  52. #
  53. # Global Send Email: Global email settings, if 1 then only mail will go from the system
  54. #
  55. global_send_email = 1
  56. #
  57. # Time Zone: Useful if your users are across timezones
  58. #
  59. user_timezone = 'Asia/Calcutta'
  60. #
  61. # Default Mail Server Settings
  62. # If mail server settings are not set in the Control Panel, they are picked from here
  63. #
  64. mail_server = None
  65. mail_login = None
  66. mail_password = None
  67. mail_port = None
  68. use_ssl = None
  69. #
  70. # Email Batching Settings
  71. # Batching of emails is a good idea because sending an email takes a longer time in the middle of a transaction
  72. # and locks the table. If emails are batched, you need to setup cron to call
  73. # webnotes.utils.email_lib.EmailQueue().flush()
  74. #
  75. batch_emails = 0
  76. # email_queue = 'email_queue.py'
  77. #
  78. # Logging Settings: Log using the python logger
  79. # Error levels (in string): 'login.DEBUG', 'login.INFO', 'login.WARNING', 'logging.ERROR', 'login.CRITICAL'
  80. #
  81. log_file_name = 'logs/error_log.txt'
  82. debug_log_dbs = []
  83. log_level = 'logging.INFO'
  84. log_file_size = 5000
  85. log_file_backup_count = 5
  86. #
  87. # Backup Settings
  88. #
  89. # where the dumps will be stored
  90. backup_path = '/backups'
  91. # where the latest dump will show up so that it can be
  92. # downloaded from the web
  93. backup_link_path = '/var/www/wnframework/backups'
  94. # url to be emailed to the "System Manager" Role to download
  95. # the backup
  96. backup_url = 'http://localhost/backups'