Advertisement
Guest User

Untitled

a guest
Apr 27th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. # This is an example settings/local.py file.
  2. # These settings overrides what's in settings/base.py
  3.  
  4. from . import base
  5.  
  6. # to be able to run unit tests enable django_nose
  7. INSTALLED_APPS = base.INSTALLED_APPS + ['django_nose']
  8.  
  9. # To extend any settings from settings/base.py here's an example:
  10. #INSTALLED_APPS = base.INSTALLED_APPS + ['debug_toolbar']
  11.  
  12. DATABASES = {
  13. 'default': {
  14. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  15. 'NAME': 'airmozilla',
  16. 'USER': 'susan',
  17. 'PASSWORD': 'susan',
  18. 'HOST': '',
  19. 'PORT': '',
  20. },
  21. # 'slave': {
  22. # ...
  23. # },
  24. }
  25.  
  26. DEBUG_PROPAGATE_EXCEPTIONS = True
  27. ALLOWED_HOSTS = ["localhost:8000"]
  28. # Uncomment this and set to all slave DBs in ulose on the site.
  29. # SLAVE_DATABASES = ['slave']
  30.  
  31. # Recipients of traceback emails and other notifications.
  32. ADMINS = (
  33. # ('Your Name', 'your_email@domain.com'),
  34. )
  35. MANAGERS = ADMINS
  36.  
  37. # Debugging displays nice error messages, but leaks memory. Set this to False
  38. # on all server instances and True only for development.
  39. #DEBUG = TEMPLATE_DEBUG = True
  40.  
  41. # Is this a development instance? Set this to True on development/master
  42. # instances and False on stage/prod.
  43. #DEV = True
  44.  
  45. # If you intend to run on something like http://127.0.0.1:8000 then
  46. # set this False so cookies can be set with HTTP
  47. SESSION_COOKIE_SECURE = False
  48.  
  49. # By default, BrowserID expects your app to use http://127.0.0.1:8000
  50. # Uncomment the following line if you prefer to access your app via localhost
  51. SITE_URL = 'http://localhost:8000'
  52.  
  53. # Playdoh ships with Bcrypt+HMAC by default because it's the most secure.
  54. # To use bcrypt, fill in a secret HMAC key. It cannot be blank.
  55. HMAC_KEYS = {
  56. '2012-06-06': 'some secret',
  57. }
  58.  
  59. from django_sha2 import get_password_hashers
  60. PASSWORD_HASHERS = get_password_hashers(base.BASE_PASSWORD_HASHERS, HMAC_KEYS)
  61.  
  62. # Make this unique, and don't share it with anybody. It cannot be blank.
  63. SECRET_KEY = 'somethingnotempty'
  64.  
  65. # Uncomment these to activate and customize Celery:
  66. # CELERY_ALWAYS_EAGER = False # required to activate celeryd
  67. # BROKER_HOST = 'localhost'
  68. # BROKER_PORT = 5672
  69. # BROKER_USER = 'playdoh'
  70. # BROKER_PASSWORD = 'playdoh'
  71. # BROKER_VHOST = 'playdoh'
  72. # CELERY_RESULT_BACKEND = 'amqp'
  73.  
  74. ## Log settings
  75.  
  76. # SYSLOG_TAG = "http_app_playdoh" # Make this unique to your project.
  77. # LOGGING = dict(loggers=dict(playdoh={'level': logging.DEBUG}))
  78.  
  79. # Common Event Format logging parameters
  80. #CEF_PRODUCT = 'Playdoh'
  81. #CEF_VENDOR = 'Mozilla'
  82.  
  83.  
  84. # Caching - use memcached
  85. CACHES = {
  86. 'default': {
  87. 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  88. 'KEY_PREFIX': 'airmoz',
  89. 'TIMEOUT': 6 * 60 * 60,
  90. 'LOCATION': 'localhost:11211'
  91. }
  92. }
  93.  
  94.  
  95.  
  96. # Email backend - fill in with SMTP details
  97. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  98. EMAIL_HOST = ''
  99. EMAIL_PORT = 25
  100. EMAIL_HOST_USER = ''
  101. EMAIL_HOST_PASSWORD = ''
  102. EMAIL_USE_TLS = True
  103.  
  104. EMAIL_FROM_ADDRESS = 'airmozilla-ops@mozilla.com'
  105.  
  106. # for debugging/development
  107. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  108.  
  109. # These need to be filled in to able to use Vid.ly's secure tokens
  110. # See https://bugzilla.mozilla.org/show_bug.cgi?id=798572#c2
  111. VIDLY_USER_ID = ''
  112. VIDLY_USER_KEY = ''
  113.  
  114. # And this is needed for EdgeCast
  115. EDGECAST_SECURE_KEY = ''
  116.  
  117. # Needed to be able to look up vouced users
  118. MOZILLIANS_API_KEY = ''
  119. MOZILLIANS_API_APPNAME = 'air_mozilla'
  120. # optional
  121. #MOZILLIANS_API_BASE = 'https://mozillians.allizom.org'
  122.  
  123. # needed to be able to tweet
  124. TWITTER_USERNAME = 'airmozilla'
  125. TWITTER_CONSUMER_SECRET = ''
  126. TWITTER_CONSUMER_KEY = ''
  127. TWITTER_ACCESS_TOKEN = ''
  128. TWITTER_ACCESS_TOKEN_SECRET = ''
  129.  
  130. # if you have passwords for URL tranforms
  131. #URL_TRANSFORM_PASSWORDS = {'encoder-commons-mtv1': ...}
  132.  
  133. # Bit.ly URL shortener access token
  134. BITLY_ACCESS_TOKEN = ''
  135.  
  136. # To get your Sentry key, go to https://errormill.mozilla.org/
  137. #RAVEN_CONFIG = {
  138. # 'dsn': '' # see https://errormill.mozilla.org/
  139. #}
  140.  
  141. # Talk to your friendly IT guys to fill this in
  142. AWS_ACCESS_KEY_ID = ''
  143. AWS_SECRET_ACCESS_KEY = ''
  144. #S3_UPLOAD_BUCKET = 'air-mozilla-uploads'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement