-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.py
55 lines (41 loc) · 2.05 KB
/
config-example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
# Copy this file to config.py and change the settings. Don't forget to specify your own SECRET_KEY.
from collections import namedtuple
# The app name will be used in several places.
APP_NAME = 'Yelp Love'
APP_BASE_URL = 'https://PROJECT_ID.appspot.com/'
LOVE_SENDER_EMAIL = 'Yelp Love <love@PROJECT_ID.appspotmail.com>'
# We can use the 'appengine' email API or the 'sendgrid' API. Pick one here.
EMAIL_BACKEND = 'appengine'
# If you have EMAIL_BACKEND = 'sendgrid', you'll need to set the SENDGRID_API_KEY
# secret using the Secret Model. This is documented in the README in the discussion
# on "JSON via Amazon S3". You'll also need to add the sendgrid module to your
# requirements.txt. Note that you don't need it in your requirements if you don't
# have it chosen!
# Flask's secret key, used to encrypt the session cookie.
# Set this to any random string and make sure not to share this!
SECRET_KEY = 'YOUR_SECRET_HERE'
# Use default theme
THEME = 'default'
# Set to True if you'd like to see Tracebacks on localhost
DEBUG = True
# Every employee needs a reference to a Google Account. This reference is based on the users
# Google Account email address and created when employee data is imported: we take the *username*
# and this DOMAIN
DOMAIN = 'example.com'
# Name of the S3 bucket used to import employee data from a file named employees.json
# Check out /import/employees.json.example to see how this file should look like.
S3_BUCKET = 'employees'
# When do we use Gravatar? Options are:
# * 'always' - prefers Gravatar over the Employee.photo_url
# * 'backup' - use Gravatar when photo_url is empty
# * anything else - disabled
GRAVATAR = 'backup'
ORG_TITLE = 'All Company'
TEAMS_TITLE = 'All Teams'
OFFICES_TITLE = 'All Offices'
CompanyValue = namedtuple('CompanyValue', ['id', 'display_string', 'hashtags'])
COMPANY_VALUES = [
CompanyValue('BE_EXCELLENT', 'Be excellent to each other', ('excellent', 'BeExcellent', 'WyldStallyns')),
CompanyValue('DUST_IN_THE_WIND', 'All we are is dust in the wind, dude.', ('woah', 'whoa', 'DustInTheWind'))
]