1 # Django settings for pithos project.
\r
4 PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
\r
7 TEMPLATE_DEBUG = DEBUG
\r
9 # A quick-n-dirty way to know if we're running unit tests
\r
12 if len(sys.argv) >= 2:
\r
13 if os.path.basename(sys.argv[0]) == 'manage.py' and \
\r
14 (sys.argv[1] == 'test' or sys.argv[1] == 'hudson'):
\r
18 # ('Your Name', 'your_email@domain.com'),
\r
25 'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
\r
26 'NAME': PROJECT_PATH + 'pithos.db', # Or path to database file if using sqlite3.
\r
27 'USER': '', # Not used with sqlite3.
\r
28 'PASSWORD': '', # Not used with sqlite3.
\r
29 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
\r
30 'PORT': '', # Set to empty string for default. Not used with sqlite3.
\r
34 # Local time zone for this installation. Choices can be found here:
\r
35 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
\r
36 # although not all choices may be available on all operating systems.
\r
37 # On Unix systems, a value of None will cause Django to use the same
\r
38 # timezone as the operating system.
\r
39 # If running in a Windows environment this must be set to the same as your
\r
43 # Language code for this installation. All choices can be found here:
\r
44 # http://www.i18nguy.com/unicode/language-identifiers.html
\r
45 LANGUAGE_CODE = 'en-us'
\r
49 # If you set this to False, Django will make some optimizations so as not
\r
50 # to load the internationalization machinery.
\r
53 # If you set this to False, Django will not format dates, numbers and
\r
54 # calendars according to the current locale
\r
57 # Absolute filesystem path to the directory that will hold user-uploaded files.
\r
58 # Example: "/home/media/media.lawrence.com/"
\r
61 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
\r
62 # trailing slash if there is a path component (optional in other cases).
\r
63 # Examples: "http://media.lawrence.com", "http://example.com/media/"
\r
66 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
\r
68 # Examples: "http://foo.com/media/", "/media/".
\r
69 ADMIN_MEDIA_PREFIX = '/media/'
\r
71 # Make this unique, and don't share it with anybody.
\r
72 SECRET_KEY = '$j0cdrfm*0sc2j+e@@2f-&3-_@2=^!z#+b-8o4_i10@2%ev7si'
\r
74 # List of callables that know how to import templates from various sources.
\r
75 TEMPLATE_LOADERS = (
\r
76 'django.template.loaders.filesystem.Loader',
\r
77 'django.template.loaders.app_directories.Loader',
\r
78 # 'django.template.loaders.eggs.Loader',
\r
81 MIDDLEWARE_CLASSES = (
\r
82 'django.middleware.common.CommonMiddleware',
\r
83 'django.contrib.sessions.middleware.SessionMiddleware',
\r
84 # 'django.middleware.csrf.CsrfViewMiddleware',
\r
85 'django.contrib.auth.middleware.AuthenticationMiddleware',
\r
86 'django.contrib.messages.middleware.MessageMiddleware',
\r
89 ROOT_URLCONF = 'pithos.urls'
\r
92 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
\r
93 # Always use forward slashes, even on Windows.
\r
94 # Don't forget to use absolute paths, not relative paths.
\r
98 'django.contrib.auth',
\r
99 'django.contrib.contenttypes',
\r
100 'django.contrib.sessions',
\r
101 'django.contrib.sites',
\r
102 'django.contrib.messages',
\r
103 # 'django.contrib.admin',
\r
104 # 'django.contrib.admindocs',
\r