NewsBlur-viq/settings.py

117 lines
3.5 KiB
Python
Raw Normal View History

2009-06-16 03:08:55 +00:00
# Django settings for newsblur project.
import sys
sys.stdout = sys.stderr
2009-06-16 03:08:55 +00:00
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Robert Samuel Clay', 'samuel@ofbrooklyn.com'),
)
MANAGERS = ADMINS
PRODUCTION = __file__.find('/home/conesus/webapps') == 0
STAGING = __file__.find('/home/conesus/newsblur') == 0
DEVELOPMENT = __file__.find('/Users/conesus/Projects/newsblur') == 0
if PRODUCTION:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'conesus_newsblur'
DATABASE_USER = 'conesus_newsblur'
DATABASE_PASSWORD = 'lapsak21'
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
2009-06-16 03:08:55 +00:00
# Absolute path to the directory that holds media.
# Example: "/Users/media/media.lawrence.com/"
2009-06-18 01:55:22 +00:00
MEDIA_ROOT = '/home/conesus/webapps/newsblur/newsblur/media/'
2009-06-18 02:44:40 +00:00
MEDIA_URL = 'http://conesus.webfactional.com/media/media/'
2009-06-16 03:08:55 +00:00
TEMPLATE_DIRS = (
2009-06-18 01:55:22 +00:00
'/home/conesus/webapps/newsblur/newsblur/templates'
2009-06-16 03:08:55 +00:00
)
DEBUG = True
elif STAGING:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'newsblur'
DATABASE_USER = 'newsblur'
DATABASE_PASSWORD = ''
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
2009-06-22 15:28:20 +00:00
# Absolute path to the directory that holds media.
# Example: "/Users/media/media.lawrence.com/"
MEDIA_ROOT = '/home/conesus/newsblur/media/'
MEDIA_URL = 'http://www.newsblur.com/media/'
2009-06-22 15:28:20 +00:00
TEMPLATE_DIRS = (
'/home/conesus/newsblur/templates'
)
DEBUG = True
2009-06-16 03:08:55 +00:00
else:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'newsblur'
DATABASE_USER = 'newsblur'
DATABASE_PASSWORD = ''
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
2009-06-16 03:08:55 +00:00
# Absolute path to the directory that holds media.
# Example: "/Users/media/media.lawrence.com/"
MEDIA_ROOT = '/Users/conesus/Projects/newsblur/media/'
MEDIA_URL = '/media/'
2009-06-16 03:08:55 +00:00
TEMPLATE_DIRS = (
'/Users/conesus/Projects/newsblur/templates'
)
DEBUG = True
2009-06-16 03:08:55 +00:00
TIME_ZONE = 'America/New_York'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
2009-06-18 01:55:22 +00:00
USE_I18N = False
2009-06-16 03:08:55 +00:00
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/admin/'
SECRET_KEY = '6yx-@2u@v$)-=fqm&tc8lhk3$6d68+c7gd%p$q2@o7b4o8-*fz'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_template_source',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.media"
)
MIDDLEWARE_CLASSES = (
'django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.CacheMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware'
)
AUTH_PROFILE_MODULE = 'newsblur.UserProfile'
TEST_DATABASE_COLLATION = 'utf8_general_ci'
2009-06-16 03:08:55 +00:00
ROOT_URLCONF = 'urls'
CACHE_BACKEND = 'file:///var/tmp/django_cache'
# CACHE_BACKEND = 'dummy:///'
# CACHE_BACKEND = 'locmem:///'
2009-06-16 03:08:55 +00:00
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'utils.django_command_extensions.django_extensions',
'apps.rss_feeds',
'apps.reader',
'apps.analyzer',
'apps.registration',
'apps.opml_import',
'apps.profile',
)