Statistics
| Branch: | Tag: | Revision:

root / src / pithos / settings.py.dist @ c7e0bbe2

History | View | Annotate | Download (3.6 kB)

1
# Django settings for pithos project.
2
import os
3

    
4
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
5

    
6
DEBUG = True
7
TEMPLATE_DEBUG = DEBUG
8

    
9
# A quick-n-dirty way to know if we're running unit tests
10
import sys
11
TEST = False
12
if len(sys.argv) >= 2:
13
    if os.path.basename(sys.argv[0]) == 'manage.py' and \
14
        (sys.argv[1] == 'test' or sys.argv[1] == 'hudson'):
15
            TEST = True
16

    
17
ADMINS = (
18
    # ('Your Name', 'your_email@domain.com'),
19
)
20

    
21
MANAGERS = ADMINS
22

    
23
DATABASES = {
24
    'default': {
25
        'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
26
        'NAME': PROJECT_PATH + 'pithos.db',		# Or path to database file if using sqlite3.
27
        'USER': '',                      # Not used with sqlite3.
28
        'PASSWORD': '',                  # Not used with sqlite3.
29
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
30
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
31
    }
32
}
33

    
34
# Local time zone for this installation. Choices can be found here:
35
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
36
# although not all choices may be available on all operating systems.
37
# On Unix systems, a value of None will cause Django to use the same
38
# timezone as the operating system.
39
# If running in a Windows environment this must be set to the same as your
40
# system time zone.
41
TIME_ZONE = 'UTC'
42

    
43
# Language code for this installation. All choices can be found here:
44
# http://www.i18nguy.com/unicode/language-identifiers.html
45
LANGUAGE_CODE = 'en-us'
46

    
47
SITE_ID = 1
48

    
49
# If you set this to False, Django will make some optimizations so as not
50
# to load the internationalization machinery.
51
USE_I18N = True
52

    
53
# If you set this to False, Django will not format dates, numbers and
54
# calendars according to the current locale
55
USE_L10N = True
56

    
57
# Absolute filesystem path to the directory that will hold user-uploaded files.
58
# Example: "/home/media/media.lawrence.com/"
59
MEDIA_ROOT = ''
60

    
61
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
62
# trailing slash if there is a path component (optional in other cases).
63
# Examples: "http://media.lawrence.com", "http://example.com/media/"
64
MEDIA_URL = ''
65

    
66
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
67
# trailing slash.
68
# Examples: "http://foo.com/media/", "/media/".
69
ADMIN_MEDIA_PREFIX = '/media/'
70

    
71
# Make this unique, and don't share it with anybody.
72
SECRET_KEY = '$j0cdrfm*0sc2j+e@@2f-&3-_@2=^!z#+b-8o4_i10@2%ev7si'
73

    
74
# List of callables that know how to import templates from various sources.
75
TEMPLATE_LOADERS = (
76
    'django.template.loaders.filesystem.Loader',
77
    'django.template.loaders.app_directories.Loader',
78
#     'django.template.loaders.eggs.Loader',
79
)
80

    
81
MIDDLEWARE_CLASSES = (
82
    'django.middleware.common.CommonMiddleware',
83
    'django.contrib.sessions.middleware.SessionMiddleware',
84
    'django.middleware.csrf.CsrfViewMiddleware',
85
    'django.contrib.auth.middleware.AuthenticationMiddleware',
86
    'django.contrib.messages.middleware.MessageMiddleware',
87
)
88

    
89
ROOT_URLCONF = 'pithos.urls'
90

    
91
TEMPLATE_DIRS = (
92
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
93
    # Always use forward slashes, even on Windows.
94
    # Don't forget to use absolute paths, not relative paths.
95
)
96

    
97
INSTALLED_APPS = (
98
    'django.contrib.auth',
99
    'django.contrib.contenttypes',
100
    'django.contrib.sessions',
101
    'django.contrib.sites',
102
    'django.contrib.messages',
103
    'django.contrib.admin',
104
    'django.contrib.admindocs',
105
    'api'
106
)