Statistics
| Branch: | Tag: | Revision:

root / settings.py.dist @ 06a0e098

History | View | Annotate | Download (3.9 kB)

1 d7f0ad6e provetza
# -*- coding: utf-8 -*-
2 d7f0ad6e provetza
3 00b4f1be Faidon Liambotis
# Django settings for synnefo project.
4 00b4f1be Faidon Liambotis
5 00b4f1be Faidon Liambotis
DEBUG = True
6 00b4f1be Faidon Liambotis
TEMPLATE_DEBUG = DEBUG
7 00b4f1be Faidon Liambotis
8 00b4f1be Faidon Liambotis
ADMINS = (
9 00b4f1be Faidon Liambotis
    # ('Your Name', 'your_email@domain.com'),
10 00b4f1be Faidon Liambotis
)
11 00b4f1be Faidon Liambotis
12 00b4f1be Faidon Liambotis
MANAGERS = ADMINS
13 00b4f1be Faidon Liambotis
14 00b4f1be Faidon Liambotis
DATABASES = {
15 00b4f1be Faidon Liambotis
    'default': {
16 ccbd9f9b Markos Gogoulos
        'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17 ccbd9f9b Markos Gogoulos
        'NAME': 'vasi.sqlite',                      # Or path to database file if using sqlite3.
18 00b4f1be Faidon Liambotis
        'USER': '',                      # Not used with sqlite3.
19 00b4f1be Faidon Liambotis
        'PASSWORD': '',                  # Not used with sqlite3.
20 00b4f1be Faidon Liambotis
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
21 00b4f1be Faidon Liambotis
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
22 00b4f1be Faidon Liambotis
    }
23 00b4f1be Faidon Liambotis
}
24 00b4f1be Faidon Liambotis
25 db3dccf4 Dimitris Moraitis
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
26 db3dccf4 Dimitris Moraitis
27 00b4f1be Faidon Liambotis
# Local time zone for this installation. Choices can be found here:
28 00b4f1be Faidon Liambotis
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
29 00b4f1be Faidon Liambotis
# although not all choices may be available on all operating systems.
30 00b4f1be Faidon Liambotis
# On Unix systems, a value of None will cause Django to use the same
31 00b4f1be Faidon Liambotis
# timezone as the operating system.
32 00b4f1be Faidon Liambotis
# If running in a Windows environment this must be set to the same as your
33 00b4f1be Faidon Liambotis
# system time zone.
34 00b4f1be Faidon Liambotis
TIME_ZONE = 'America/Chicago'
35 00b4f1be Faidon Liambotis
36 00b4f1be Faidon Liambotis
# Language code for this installation. All choices can be found here:
37 00b4f1be Faidon Liambotis
# http://www.i18nguy.com/unicode/language-identifiers.html
38 00b4f1be Faidon Liambotis
LANGUAGE_CODE = 'en-us'
39 00b4f1be Faidon Liambotis
40 00b4f1be Faidon Liambotis
SITE_ID = 1
41 00b4f1be Faidon Liambotis
42 00b4f1be Faidon Liambotis
# If you set this to False, Django will make some optimizations so as not
43 00b4f1be Faidon Liambotis
# to load the internationalization machinery.
44 00b4f1be Faidon Liambotis
USE_I18N = True
45 00b4f1be Faidon Liambotis
46 00b4f1be Faidon Liambotis
# If you set this to False, Django will not format dates, numbers and
47 00b4f1be Faidon Liambotis
# calendars according to the current locale
48 00b4f1be Faidon Liambotis
USE_L10N = True
49 00b4f1be Faidon Liambotis
50 00b4f1be Faidon Liambotis
# Absolute path to the directory that holds media.
51 00b4f1be Faidon Liambotis
# Example: "/home/media/media.lawrence.com/"
52 00b4f1be Faidon Liambotis
MEDIA_ROOT = ''
53 00b4f1be Faidon Liambotis
54 00b4f1be Faidon Liambotis
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
55 00b4f1be Faidon Liambotis
# trailing slash if there is a path component (optional in other cases).
56 00b4f1be Faidon Liambotis
# Examples: "http://media.lawrence.com", "http://example.com/media/"
57 00b4f1be Faidon Liambotis
MEDIA_URL = ''
58 00b4f1be Faidon Liambotis
59 00b4f1be Faidon Liambotis
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
60 00b4f1be Faidon Liambotis
# trailing slash.
61 00b4f1be Faidon Liambotis
# Examples: "http://foo.com/media/", "/media/".
62 00b4f1be Faidon Liambotis
ADMIN_MEDIA_PREFIX = '/media/'
63 00b4f1be Faidon Liambotis
64 81357279 Faidon Liambotis
# our REST API would prefer to be explicit about trailing slashes
65 81357279 Faidon Liambotis
APPEND_SLASH = False
66 81357279 Faidon Liambotis
67 00b4f1be Faidon Liambotis
# Make this unique, and don't share it with anybody.
68 00b4f1be Faidon Liambotis
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
69 00b4f1be Faidon Liambotis
70 00b4f1be Faidon Liambotis
# List of callables that know how to import templates from various sources.
71 00b4f1be Faidon Liambotis
TEMPLATE_LOADERS = (
72 00b4f1be Faidon Liambotis
    'django.template.loaders.filesystem.Loader',
73 00b4f1be Faidon Liambotis
    'django.template.loaders.app_directories.Loader',
74 00b4f1be Faidon Liambotis
#     'django.template.loaders.eggs.Loader',
75 00b4f1be Faidon Liambotis
)
76 00b4f1be Faidon Liambotis
77 d7f0ad6e provetza
TEMPLATE_CONTEXT_PROCESSORS = (
78 ccbd9f9b Markos Gogoulos
    'django.core.context_processors.request',
79 d7f0ad6e provetza
    'django.core.context_processors.i18n',
80 ccbd9f9b Markos Gogoulos
    'django.contrib.auth.context_processors.auth',
81 d7f0ad6e provetza
)
82 d7f0ad6e provetza
83 00b4f1be Faidon Liambotis
MIDDLEWARE_CLASSES = (
84 00b4f1be Faidon Liambotis
    'django.contrib.sessions.middleware.SessionMiddleware',
85 d7f0ad6e provetza
    'django.middleware.locale.LocaleMiddleware',
86 421369dc user
    'django.middleware.common.CommonMiddleware',
87 421369dc user
    'synnefo.middleware.StripURLMiddleware',
88 421369dc user
    'django.contrib.auth.middleware.AuthenticationMiddleware',
89 421369dc user
    'django.contrib.messages.middleware.MessageMiddleware',
90 00b4f1be Faidon Liambotis
)
91 00b4f1be Faidon Liambotis
92 00b4f1be Faidon Liambotis
ROOT_URLCONF = 'synnefo.urls'
93 00b4f1be Faidon Liambotis
94 00b4f1be Faidon Liambotis
TEMPLATE_DIRS = (
95 00b4f1be Faidon Liambotis
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
96 00b4f1be Faidon Liambotis
    # Always use forward slashes, even on Windows.
97 00b4f1be Faidon Liambotis
    # Don't forget to use absolute paths, not relative paths.
98 00b4f1be Faidon Liambotis
)
99 00b4f1be Faidon Liambotis
100 00b4f1be Faidon Liambotis
INSTALLED_APPS = (
101 00b4f1be Faidon Liambotis
    'django.contrib.auth',
102 00b4f1be Faidon Liambotis
    'django.contrib.contenttypes',
103 00b4f1be Faidon Liambotis
    'django.contrib.sessions',
104 00b4f1be Faidon Liambotis
    'django.contrib.sites',
105 00b4f1be Faidon Liambotis
    'django.contrib.messages',
106 78dec216 Vassilios Karakoidas
    'django.contrib.admin',
107 00b4f1be Faidon Liambotis
    # 'django.contrib.admindocs',
108 3758cc42 Faidon Liambotis
    'synnefo.auth',
109 00b4f1be Faidon Liambotis
    'synnefo.api',
110 0f402f77 Dimitris Moraitis
    'synnefo.ui',
111 ccbd9f9b Markos Gogoulos
    'synnefo.db',
112 06a0e098 Vassilios Karakoidas
    'synnefo.ganneti'
113 00b4f1be Faidon Liambotis
)
114 253f0c82 Faidon Liambotis
115 ccbd9f9b Markos Gogoulos
GANETI_CLUSTER_INFO = None #("x.y.z.a",5080,"userX","passY")
116 9dbe70f8 Markos Gogoulos
GANETI_PREFIX_ID = "snf-" #ganeti needs each machine to have a unique name
117 d7f0ad6e provetza
118 d7f0ad6e provetza
LANGUAGES = (
119 d7f0ad6e provetza
  ('el', u'Ελληνικά'),
120 d7f0ad6e provetza
  ('en', 'English'),
121 d7f0ad6e provetza
)