source: asadb/settings/local_settings.scripts.py

space-accessstablestage
Last change on this file was 7bb33c1, checked in by Alex Dehnert <adehnert@…>, 13 years ago

Add settings files for scripts.mit.edu

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import os
2
3DATABASES = {
4    'default': {
5        'ENGINE': 'django.db.backends.mysql',
6        'NAME': 'user+db',    # XXX: fix the database
7        'OPTIONS': {
8            'read_default_file' : os.path.expanduser('~/.my.cnf'),
9        },
10        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
11    }
12}
13
14# Mail sending
15# See https://docs.djangoproject.com/en/dev/topics/email/#email-backends
16send_mail = True
17send_mail = False
18if send_mail:
19    EMAIL_HOST = 'outgoing.mit.edu'
20else:
21    EMAIL_BACKEND = 'util.emailbackend.ForcedRecipientEmailBackend'
22    EMAIL_FORCED_RECIPIENTS = ['testing@mit.edu', ] # XXX: change the recipient
23    EMAIL_FORCED_RECIPIENTS_LABEL = 'asa-db-forced-recipient@mit.edu'
24
25# XXX: Make this unique, and don't share it with anybody.
26#SECRET_KEY = something
27# Generate the "something" with:
28# import random; ''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789@#%&-_=+') for i in range(50)])
29
30SITE_SERVER = 'https://asa.scripts.mit.edu:444' # XXX: FIXME
31SITE_WEB_PATH = '/asadb'    # XXX: FIXME
32SITE_URL_BASE = SITE_SERVER
33
34COOKIES_PREFIX = "asadb_"   # XXX: FIXME
Note: See TracBrowser for help on using the repository browser.