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.

71 lines
2.5 KiB

  1. # mail for IF-OTRS
  2. IF_EMAIL = 'community@wikimedia.de'
  3. #IF_EMAIL = 'test-luca-ext@wikimedia.de'
  4. #SURVEY_EMAIL = 'christof.pins@wikimedia.de'
  5. #SURVEY_EMAIL = 'luca.wulf@cannabinieri.de'
  6. SURVEY_EMAIL = 'sandro.halank@wikimedia.de'
  7. # prefix for urls
  8. SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?'
  9. # some links
  10. DATAPROTECTION = "https://www.wikimedia.de/datenschutz/#datenerfassung"
  11. FOERDERRICHTLINIEN = "https://de.wikipedia.org/wiki/Wikipedia:Wikimedia_Deutschland/F%C3%B6rderrichtlinien"
  12. NUTZUNGSBEDINGUNGEN = 'static/input/nutzungsbedingungen.html'
  13. LANGUAGE_CODE = 'de'
  14. TIME_ZONE = 'UTC'
  15. USE_I18N = True
  16. USE_L10N = True
  17. USE_TZ = True
  18. ACCOUNTS ={ # "21103": '21103 Willkommen',
  19. "DEF": 'DEFAULT VALUE, you hould not see this!',
  20. "21111": '21111 Förderung (reaktiv)',
  21. "21112": '21112 WikiCon',
  22. # "21113": '21113 Wikimania/Unterstützung Ehrenamtliche',
  23. "21115": '21115 Lokale Räume, Berlin',
  24. "21116": '21116 Lokale Räume, Hamburg',
  25. "21117": '21117 Lokale Räume, Hannover',
  26. "21118": '21118 Lokale Räume, Köln',
  27. "21119": '21119 Lokale Räume, München',
  28. "21120": '21120 Lokale Räume, Fürth',
  29. "21125": '21125 Lokale Räume, allgemein',
  30. "21130": '21130 GLAM-Förderung',
  31. "21131": '21131 Initiative Förderung',
  32. # "21134": '21134 Größe',
  33. # "21137": '21137 Beitragen',
  34. # "21138": '21138 Vermittlung',
  35. "21140": '21140 Wikipedia-Kampagne',
  36. "21141": '21141 Wikipedia-Onboarding',
  37. "21150": '21150 Fürsorge und Online-Kommunikationskultur',}
  38. # teken from working oauth prototype as additional settings
  39. WSGI_APPLICATION = 'oauth_demo.wsgi.application'
  40. # OAuth Settings
  41. OAUTH_URL_WHITELISTS = []
  42. OAUTH_CLIENT_NAME = '<name-of-the-configured-wikimedia-app>'
  43. OAUTH_CLIENT = {
  44. 'client_id': '<client-application-key-of-wikimedia-app>',
  45. 'client_secret': '<client-application-secret-of-wikimedia-app>',
  46. 'access_token_url': 'https://meta.wikimedia.org/w/rest.php/oauth2/access_token',
  47. 'authorize_url': 'https://meta.wikimedia.org/w/rest.php/oauth2/authorize',
  48. 'api_base_url': 'https://meta.wikimedia.org/w/rest.php/oauth2/resource',
  49. 'redirect_uri': 'http://localhost:8000/oauth/callback',
  50. 'client_kwargs': {
  51. 'scope': 'basic',
  52. 'token_placement': 'header'
  53. },
  54. 'userinfo_endpoint': 'resource/profile',
  55. }
  56. OAUTH_COOKIE_SESSION_ID = 'sso_session_id'