Statistics
| Branch: | Tag: | Revision:

root / settings.d / 00-apps.conf @ ccd0d474

History | View | Annotate | Download (3.6 kB)

1 1277fb19 Vangelis Koukis
# -*- coding: utf-8 -*-
2 1277fb19 Vangelis Koukis
3 1277fb19 Vangelis Koukis
# Copyright 2011 GRNET S.A. All rights reserved.
4 1277fb19 Vangelis Koukis
# 
5 1277fb19 Vangelis Koukis
# Redistribution and use in source and binary forms, with or
6 1277fb19 Vangelis Koukis
# without modification, are permitted provided that the following
7 1277fb19 Vangelis Koukis
# conditions are met:
8 1277fb19 Vangelis Koukis
# 
9 1277fb19 Vangelis Koukis
#   1. Redistributions of source code must retain the above
10 1277fb19 Vangelis Koukis
#      copyright notice, this list of conditions and the following
11 1277fb19 Vangelis Koukis
#      disclaimer.
12 1277fb19 Vangelis Koukis
# 
13 1277fb19 Vangelis Koukis
#   2. Redistributions in binary form must reproduce the above
14 1277fb19 Vangelis Koukis
#      copyright notice, this list of conditions and the following
15 1277fb19 Vangelis Koukis
#      disclaimer in the documentation and/or other materials
16 1277fb19 Vangelis Koukis
#      provided with the distribution.
17 1277fb19 Vangelis Koukis
# 
18 1277fb19 Vangelis Koukis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
19 1277fb19 Vangelis Koukis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 1277fb19 Vangelis Koukis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 1277fb19 Vangelis Koukis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
22 1277fb19 Vangelis Koukis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 1277fb19 Vangelis Koukis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 1277fb19 Vangelis Koukis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
25 1277fb19 Vangelis Koukis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26 1277fb19 Vangelis Koukis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 1277fb19 Vangelis Koukis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 1277fb19 Vangelis Koukis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1277fb19 Vangelis Koukis
# POSSIBILITY OF SUCH DAMAGE.
30 1277fb19 Vangelis Koukis
# 
31 1277fb19 Vangelis Koukis
# The views and conclusions contained in the software and
32 1277fb19 Vangelis Koukis
# documentation are those of the authors and should not be
33 1277fb19 Vangelis Koukis
# interpreted as representing official policies, either expressed
34 1277fb19 Vangelis Koukis
# or implied, of GRNET S.A.
35 1277fb19 Vangelis Koukis
# 
36 1277fb19 Vangelis Koukis
# -*- coding: utf-8 -*-
37 1277fb19 Vangelis Koukis
38 1277fb19 Vangelis Koukis
#
39 1277fb19 Vangelis Koukis
# Core Django settings
40 1277fb19 Vangelis Koukis
##################################
41 1277fb19 Vangelis Koukis
42 1277fb19 Vangelis Koukis
INSTALLED_APPS = (
43 1277fb19 Vangelis Koukis
    'django.contrib.contenttypes',
44 1277fb19 Vangelis Koukis
    'django.contrib.sessions',
45 1277fb19 Vangelis Koukis
    'django.contrib.sites',
46 1277fb19 Vangelis Koukis
    'django.contrib.messages',
47 1277fb19 Vangelis Koukis
    'django.contrib.admin',
48 1277fb19 Vangelis Koukis
    # 'django.contrib.admindocs',
49 1277fb19 Vangelis Koukis
    'synnefo.aai',
50 1277fb19 Vangelis Koukis
    'synnefo.api',
51 1277fb19 Vangelis Koukis
    'synnefo.ui',
52 1277fb19 Vangelis Koukis
    'synnefo.db',
53 1277fb19 Vangelis Koukis
    'synnefo.ganeti',
54 1277fb19 Vangelis Koukis
    'synnefo.logic',
55 1277fb19 Vangelis Koukis
    'synnefo.invitations',
56 1277fb19 Vangelis Koukis
    'south'
57 1277fb19 Vangelis Koukis
)
58 1277fb19 Vangelis Koukis
59 1277fb19 Vangelis Koukis
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
60 1277fb19 Vangelis Koukis
61 1277fb19 Vangelis Koukis
# List of callables that know how to import templates from various sources.
62 1277fb19 Vangelis Koukis
TEMPLATE_LOADERS = (
63 1277fb19 Vangelis Koukis
    'django.template.loaders.filesystem.Loader',
64 1277fb19 Vangelis Koukis
    'django.template.loaders.app_directories.Loader',
65 1277fb19 Vangelis Koukis
#     'django.template.loaders.eggs.Loader',
66 1277fb19 Vangelis Koukis
)
67 1277fb19 Vangelis Koukis
68 1277fb19 Vangelis Koukis
TEMPLATE_CONTEXT_PROCESSORS = (
69 1277fb19 Vangelis Koukis
    'django.core.context_processors.request',
70 1277fb19 Vangelis Koukis
    'django.core.context_processors.i18n',
71 1277fb19 Vangelis Koukis
    'django.contrib.auth.context_processors.auth',
72 1277fb19 Vangelis Koukis
)
73 1277fb19 Vangelis Koukis
74 1277fb19 Vangelis Koukis
MIDDLEWARE_CLASSES = (
75 1277fb19 Vangelis Koukis
    'django.contrib.sessions.middleware.SessionMiddleware',
76 1277fb19 Vangelis Koukis
    'synnefo.aai.middleware.SynnefoAuthMiddleware',
77 1277fb19 Vangelis Koukis
    'synnefo.api.middleware.ApiAuthMiddleware',
78 1277fb19 Vangelis Koukis
    'django.middleware.locale.LocaleMiddleware',
79 1277fb19 Vangelis Koukis
    'django.middleware.common.CommonMiddleware',
80 1277fb19 Vangelis Koukis
    'django.contrib.messages.middleware.MessageMiddleware'
81 1277fb19 Vangelis Koukis
)
82 1277fb19 Vangelis Koukis
83 1277fb19 Vangelis Koukis
ROOT_URLCONF = 'synnefo.urls'
84 1277fb19 Vangelis Koukis
85 1277fb19 Vangelis Koukis
TEMPLATE_DIRS = (
86 1277fb19 Vangelis Koukis
    # Put strings here, like "/home/html/django_templates"
87 1277fb19 Vangelis Koukis
    # or "C:/www/django/templates".
88 1277fb19 Vangelis Koukis
    # Always use forward slashes, even on Windows.
89 1277fb19 Vangelis Koukis
    # Don't forget to use absolute paths, not relative paths.
90 1277fb19 Vangelis Koukis
)
91 1277fb19 Vangelis Koukis
92 1277fb19 Vangelis Koukis
LANGUAGES = (
93 1277fb19 Vangelis Koukis
  ('el', u'Ελληνικά'),
94 1277fb19 Vangelis Koukis
  ('en', 'English'),
95 1277fb19 Vangelis Koukis
)
96 1277fb19 Vangelis Koukis
97 1277fb19 Vangelis Koukis
# Local time zone for this installation. Choices can be found here:
98 1277fb19 Vangelis Koukis
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
99 1277fb19 Vangelis Koukis
# although not all choices may be available on all operating systems.
100 1277fb19 Vangelis Koukis
# On Unix systems, a value of None will cause Django to use the same
101 1277fb19 Vangelis Koukis
# timezone as the operating system.
102 1277fb19 Vangelis Koukis
# If running in a Windows environment this must be set to the same as your
103 1277fb19 Vangelis Koukis
# system time zone.
104 1277fb19 Vangelis Koukis
TIME_ZONE = 'UTC'   # Warning: The API depends on the TIME_ZONE being UTC