Advertisement
robflate

dtable_web_settings.py

Sep 22nd, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.28 KB | Help | 0 0
  1. DATABASES = {
  2.     'default': {
  3.         'ENGINE': 'django.db.backends.mysql',
  4.         'HOST': 'seatable_db',
  5.         'PORT': '3306',
  6.         'USER': 'xxxxxxxx',
  7.         'PASSWORD': 'xxxxxxxx',
  8.         'NAME': 'dtable_db',
  9.         'OPTIONS': {
  10.             'charset': 'utf8mb4',
  11.         },
  12.     }
  13. }
  14.  
  15. CACHES = {
  16.     'default': {
  17.         'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
  18.         'LOCATION': 'memcached',
  19.     },
  20.     'locmem': {
  21.         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
  22.     },
  23. }
  24. COMPRESS_CACHE_BACKEND = 'locmem'
  25.  
  26. # for dtable-server
  27. DTABLE_PRIVATE_KEY = 'xxxxxxxx'
  28. DTABLE_SERVER_URL = 'https://seatable.xxxxxxxx.com/dtable-server/'
  29. DTABLE_SOCKET_URL = 'https://seatable.xxxxxxxx.com/'
  30.  
  31. # for dtable-web
  32. DTABLE_WEB_SERVICE_URL = 'https://seatable.xxxxxxxx.com/'
  33.  
  34. # for seaf-server
  35. FILE_SERVER_ROOT = 'https://seatable.xxxxxxxx.com/seafhttp/'
  36.  
  37. ENABLE_USER_TO_SET_NUMBER_SEPARATOR = True
  38.  
  39. PLUGINS_REPO_ID='f24d5f5f-900c-40cc-8c5e-fee4ca75e5d0'
  40.  
  41. # Configure user help pages
  42. HELP_LINK = 'https://seatable.io/help/'
  43.  
  44. # Maps Plugin
  45. DTABLE_GOOGLE_MAP_KEY = 'xxxxxxxx'
  46.  
  47. DTABLE_DB_URL = 'https://seatable.xxxxxxxx.com/dtable-db/'
  48.  
  49. SESSION_COOKIE_SAMESITE = 'None'
  50. CSRF_COOKIE_SAMESITE = 'None'
  51.  
  52. NEW_DTABLE_IN_STORAGE_SERVER = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement