summaryrefslogtreecommitdiffstats
path: root/config_example.py
blob: e616dd4f242fb05d7abdb5b6c77be2e88c21a355 (plain)
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
DEBUG = True

SECRET_KEY = 'changeme'

MEDIA_ROOT = 'media'

STATIC_ROOT = 'collected-static'

DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME':  'db.sqlite3',
            }
        }

## Django Mellon configuration
# you need to generate SSL certificates in your current directory to make it functionnal :
#
#   openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:2048 -out key.cert
#   openssl req -x509 -new -out cert.pem -subj '/CN=whocaresIdo' -key key.cert -days 3650
#
# you also need to get the idp metadata and call it idp-metadata.xml
# Uncomment the following lines to enable SAML support
#INSTALLED_APPS += ('mellon',)
#AUTHENTICATION_BACKENDS = ( 'mellon.backends.SAMLBackend',)
#LOGIN_URL = '/accounts/mellon/login/'
#LOGOUT_URL = '/accounts/mellon/logout/'
#MELLON_PUBLIC_KEYS = ['cert.pem']
#MELLON_PRIVATE_KEY = 'key.cert'
#MELLON_IDENTITY_PROVIDERS = [
#            {'METADATA': 'idp-metadata.xml',
#             'GROUP_ATTRIBUTE': 'role'},
#        ]