Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / synnefo_settings.py @ 469d0997

History | View | Annotate | Download (3.3 kB)

1 a11acc65 Kostas Papadimitriou
# Copyright 2011-2012 GRNET S.A. All rights reserved.
2 a11acc65 Kostas Papadimitriou
#
3 a11acc65 Kostas Papadimitriou
# Redistribution and use in source and binary forms, with or
4 a11acc65 Kostas Papadimitriou
# without modification, are permitted provided that the following
5 a11acc65 Kostas Papadimitriou
# conditions are met:
6 a11acc65 Kostas Papadimitriou
#
7 a11acc65 Kostas Papadimitriou
#   1. Redistributions of source code must retain the above
8 a11acc65 Kostas Papadimitriou
#      copyright notice, this list of conditions and the following
9 a11acc65 Kostas Papadimitriou
#      disclaimer.
10 a11acc65 Kostas Papadimitriou
#
11 a11acc65 Kostas Papadimitriou
#   2. Redistributions in binary form must reproduce the above
12 a11acc65 Kostas Papadimitriou
#      copyright notice, this list of conditions and the following
13 a11acc65 Kostas Papadimitriou
#      disclaimer in the documentation and/or other materials
14 a11acc65 Kostas Papadimitriou
#      provided with the distribution.
15 a11acc65 Kostas Papadimitriou
#
16 a11acc65 Kostas Papadimitriou
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 a11acc65 Kostas Papadimitriou
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 a11acc65 Kostas Papadimitriou
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 a11acc65 Kostas Papadimitriou
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 a11acc65 Kostas Papadimitriou
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 a11acc65 Kostas Papadimitriou
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 a11acc65 Kostas Papadimitriou
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 a11acc65 Kostas Papadimitriou
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 a11acc65 Kostas Papadimitriou
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 a11acc65 Kostas Papadimitriou
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 a11acc65 Kostas Papadimitriou
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 a11acc65 Kostas Papadimitriou
# POSSIBILITY OF SUCH DAMAGE.
28 a11acc65 Kostas Papadimitriou
#
29 a11acc65 Kostas Papadimitriou
# The views and conclusions contained in the software and
30 a11acc65 Kostas Papadimitriou
# documentation are those of the authors and should not be
31 a11acc65 Kostas Papadimitriou
# interpreted as representing official policies, either expressed
32 a11acc65 Kostas Papadimitriou
# or implied, of GRNET S.A.
33 a11acc65 Kostas Papadimitriou
#
34 a11acc65 Kostas Papadimitriou
35 a11acc65 Kostas Papadimitriou
"""
36 a11acc65 Kostas Papadimitriou
Django settings metadata. To be used in setup.py snf-webproject entry points.
37 a11acc65 Kostas Papadimitriou
"""
38 a11acc65 Kostas Papadimitriou
39 a11acc65 Kostas Papadimitriou
installed_apps = [
40 87ac9753 root
    {'before': 'django.contrib.admin',
41 87ac9753 root
     'insert': 'astakos.im', },
42 87ac9753 root
    'django.contrib.auth',
43 87ac9753 root
    'django.contrib.contenttypes',
44 87ac9753 root
    'django.contrib.sessions',
45 87ac9753 root
    'django.contrib.messages',
46 5550bcfb Kostas Papadimitriou
    'django_tables2',
47 73fbaec4 Sofia Papagiannaki
#    'debug_toolbar',
48 a11acc65 Kostas Papadimitriou
]
49 a11acc65 Kostas Papadimitriou
50 a11acc65 Kostas Papadimitriou
context_processors = [
51 a11acc65 Kostas Papadimitriou
    'django.core.context_processors.media',
52 a11acc65 Kostas Papadimitriou
    'django.core.context_processors.request',
53 12ba60c9 Sofia Papagiannaki
    'django.core.context_processors.csrf',
54 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.media',
55 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.im_modules',
56 d2633501 Kostas Papadimitriou
    'astakos.im.context_processors.auth_providers',
57 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.next',
58 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.code',
59 ebd369d0 Sofia Papagiannaki
    'astakos.im.context_processors.invitations',
60 ebd369d0 Sofia Papagiannaki
    'astakos.im.context_processors.menu',
61 25d9d4d0 Sofia Papagiannaki
    'astakos.im.context_processors.custom_messages',
62 c72d5a13 Kostas Papadimitriou
    'astakos.im.context_processors.last_login_method',
63 272cf735 Sofia Papagiannaki
    'astakos.im.context_processors.membership_policies',
64 ebd369d0 Sofia Papagiannaki
    'synnefo.lib.context_processors.cloudbar'
65 a11acc65 Kostas Papadimitriou
]
66 a11acc65 Kostas Papadimitriou
67 a11acc65 Kostas Papadimitriou
middlware_classes = [
68 a11acc65 Kostas Papadimitriou
    'django.contrib.auth.middleware.AuthenticationMiddleware',
69 68ed1683 Sofia Papagiannaki
    'astakos.im.middleware.CookieAuthenticationMiddleware',
70 27993be5 Kostas Papadimitriou
    'synnefo.lib.middleware.LoggingConfigMiddleware',
71 12ba60c9 Sofia Papagiannaki
    'synnefo.lib.middleware.SecureMiddleware',
72 87ac9753 root
    'django.middleware.csrf.CsrfViewMiddleware',
73 73fbaec4 Sofia Papagiannaki
#    'debug_toolbar.middleware.DebugToolbarMiddleware',
74 a11acc65 Kostas Papadimitriou
]
75 a11acc65 Kostas Papadimitriou
76 8a7b5c86 Kostas Papadimitriou
loggers = {
77 87ac9753 root
    'astakos': {
78 87ac9753 root
        'handlers': ['console'],
79 87ac9753 root
        'level': 'INFO'
80 87ac9753 root
    }
81 8a7b5c86 Kostas Papadimitriou
}
82 a11acc65 Kostas Papadimitriou
83 94459980 Kostas Papadimitriou
static_files = {'astakos.im': ''}
84 a11acc65 Kostas Papadimitriou
85 a11acc65 Kostas Papadimitriou
# The following settings will replace the default django settings
86 49474ffe Sofia Papagiannaki
AUTHENTICATION_BACKENDS = (
87 49474ffe Sofia Papagiannaki
        'astakos.im.auth_backends.EmailBackend',
88 49474ffe Sofia Papagiannaki
    'astakos.im.auth_backends.TokenBackend')
89 ca13ee49 Kostas Papadimitriou
90 ca13ee49 Kostas Papadimitriou
LOGIN_URL = '/im/'
91 a11acc65 Kostas Papadimitriou
92 a11acc65 Kostas Papadimitriou
CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'
93 a11acc65 Kostas Papadimitriou
94 87ac9753 root
#SOUTH_TESTS_MIGRATE = False
95 87ac9753 root
96 87ac9753 root
BROKER_URL = ''
97 87ac9753 root
98 73fbaec4 Sofia Papagiannaki
# INTERNAL_IPS = ('127.0.0.1',)