synnefo_settings.py 3.17 KB
Newer Older
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
# Copyright 2011-2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
#   1. Redistributions of source code must retain the above
#      copyright notice, this list of conditions and the following
#      disclaimer.
#
#   2. Redistributions in binary form must reproduce the above
#      copyright notice, this list of conditions and the following
#      disclaimer in the documentation and/or other materials
#      provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
#

"""
Django settings metadata. To be used in setup.py snf-webproject entry points.
"""

installed_apps = [
40
41
42
43
44
45
46
47
    {'before': 'django.contrib.admin',
     'insert': 'astakos.im', },
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'djcelery',
    'django_extensions',
48
49
50
51
52
]

context_processors = [
    'django.core.context_processors.media',
    'django.core.context_processors.request',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
53
    'django.core.context_processors.csrf',
54
55
56
57
    'astakos.im.context_processors.media',
    'astakos.im.context_processors.im_modules',
    'astakos.im.context_processors.next',
    'astakos.im.context_processors.code',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
58
59
    'astakos.im.context_processors.invitations',
    'astakos.im.context_processors.menu',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
60
    'astakos.im.context_processors.custom_messages',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
61
    'astakos.im.context_processors.group_kinds',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
62
    'synnefo.lib.context_processors.cloudbar'
63
64
65
66
]

middlware_classes = [
    'django.contrib.auth.middleware.AuthenticationMiddleware',
67
    'astakos.im.middleware.CookieAuthenticationMiddleware',
68
    'synnefo.lib.middleware.LoggingConfigMiddleware',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
69
    'synnefo.lib.middleware.SecureMiddleware',
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
70
    'django.middleware.csrf.CsrfViewMiddleware',
71
72
]

73
loggers = {
74
75
76
77
    'astakos': {
        'handlers': ['console'],
        'level': 'INFO'
    }
78
}
79

80
static_files = {'astakos.im': ''}
81
82
83

# The following settings will replace the default django settings
AUTHENTICATION_BACKENDS = ('astakos.im.auth_backends.EmailBackend',
84
                           'astakos.im.auth_backends.TokenBackend')
85
86
87
88
LOGIN_URL = '/im'

CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'

Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
89
#SOUTH_TESTS_MIGRATE = False
90
91
92
93

import djcelery
djcelery.setup_loader()

Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
94
BROKER_URL = ''