Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / synnefo_settings.py @ f6ff3033

History | View | Annotate | Download (3.4 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 ec5e00aa Giorgos Korfiatis
    'astakos.quotaholder_app',
48 8fb8d0cf Giorgos Korfiatis
    'synnefo_branding',
49 72313b77 Giorgos Korfiatis
    # 'debug_toolbar',
50 a11acc65 Kostas Papadimitriou
]
51 a11acc65 Kostas Papadimitriou
52 a11acc65 Kostas Papadimitriou
context_processors = [
53 85c9d0d8 Kostas Papadimitriou
    'django.contrib.auth.context_processors.auth',
54 a11acc65 Kostas Papadimitriou
    'django.core.context_processors.media',
55 a11acc65 Kostas Papadimitriou
    'django.core.context_processors.request',
56 12ba60c9 Sofia Papagiannaki
    'django.core.context_processors.csrf',
57 90e8267c Christos Stavrakakis
    'django.contrib.messages.context_processors.messages',
58 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.media',
59 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.im_modules',
60 d2633501 Kostas Papadimitriou
    'astakos.im.context_processors.auth_providers',
61 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.next',
62 a11acc65 Kostas Papadimitriou
    'astakos.im.context_processors.code',
63 ebd369d0 Sofia Papagiannaki
    'astakos.im.context_processors.invitations',
64 ebd369d0 Sofia Papagiannaki
    'astakos.im.context_processors.menu',
65 25d9d4d0 Sofia Papagiannaki
    'astakos.im.context_processors.custom_messages',
66 c72d5a13 Kostas Papadimitriou
    'astakos.im.context_processors.last_login_method',
67 272cf735 Sofia Papagiannaki
    'astakos.im.context_processors.membership_policies',
68 49044e69 Christos Stavrakakis
    'synnefo.webproject.context_processors.cloudbar'
69 a11acc65 Kostas Papadimitriou
]
70 a11acc65 Kostas Papadimitriou
71 a11acc65 Kostas Papadimitriou
middlware_classes = [
72 2d5b79ac Kostas Papadimitriou
    'django.contrib.sessions.middleware.SessionMiddleware',
73 a11acc65 Kostas Papadimitriou
    'django.contrib.auth.middleware.AuthenticationMiddleware',
74 beb2b785 Christos Stavrakakis
    'synnefo.webproject.middleware.LoggingConfigMiddleware',
75 beb2b785 Christos Stavrakakis
    'synnefo.webproject.middleware.SecureMiddleware',
76 87ac9753 root
    'django.middleware.csrf.CsrfViewMiddleware',
77 2d5b79ac Kostas Papadimitriou
    'django.contrib.messages.middleware.MessageMiddleware',
78 8fb8d0cf Giorgos Korfiatis
    # 'debug_toolbar.middleware.DebugToolbarMiddleware',
79 a11acc65 Kostas Papadimitriou
]
80 a11acc65 Kostas Papadimitriou
81 94459980 Kostas Papadimitriou
static_files = {'astakos.im': ''}
82 a11acc65 Kostas Papadimitriou
83 a11acc65 Kostas Papadimitriou
# The following settings will replace the default django settings
84 49474ffe Sofia Papagiannaki
AUTHENTICATION_BACKENDS = (
85 4e4e49bb Christos Stavrakakis
    'astakos.im.auth_backends.EmailBackend',
86 49474ffe Sofia Papagiannaki
    'astakos.im.auth_backends.TokenBackend')
87 ca13ee49 Kostas Papadimitriou
88 a11acc65 Kostas Papadimitriou
CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'
89 a11acc65 Kostas Papadimitriou
90 87ac9753 root
#SOUTH_TESTS_MIGRATE = False
91 87ac9753 root
92 87ac9753 root
BROKER_URL = ''
93 87ac9753 root
94 73fbaec4 Sofia Papagiannaki
# INTERNAL_IPS = ('127.0.0.1',)