Loading...

powered by co-ment®
 

# -*- coding: utf-8 -*- 

# Django settings for basic pinax project. 

 

import os.path 

 

PINAX_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")) 

PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) 

 

DEBUG = True 

TEMPLATE_DEBUG = DEBUG 

 

USE_ETAGS = True 

 

# tells Pinax to serve media through django.views.static.serve. 

#SERVE_MEDIA = False 

 

ADMINS = ( 

     ('Bill Burton', 'burton.wj@gmail.com'),

 

MANAGERS = ADMINS 

 

DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

DATABASE_NAME = 'calcutec_worbro2'           # Or path to database file if using sqlite3.

DATABASE_USER = 'calcutec_worbro2'             # Not used with sqlite3.

DATABASE_PASSWORD = '44notrub44'         # Not used with sqlite3.

DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.

DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

 

#Site Settings 

TIME_ZONE = 'US/Eastern' 

LANGUAGE_CODE = 'en' 

SITE_ID = 1 

USE_I18N = True 

 

# TINYMCE Settings 

TINYMCE_JS_URL = 'http://www.burtonblog.net/site_media/js/tiny_mce/tiny_mce_src.js' 

TINYMCE_DEFAULT_CONFIG = {'theme':"simple"} 

TINYMCE_SPELLCHECKER = False 

TINYMCE_COMPRESSOR = True 

 

# Absolute path to the directory that holds media. 

# Example: "/home/media/media.lawrence.com/" 

MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "site_media") 

 

# URL that handles the media served from MEDIA_ROOT. 

# Example: "http://media.lawrence.com" 

MEDIA_URL = '/site_media/' 

 

# 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/' 

 

# Make this unique, and don't share it with anybody. 

SECRET_KEY = 'bk-e2zv3humar79nm=j*bwc=-ymeit(8a20whp3goq4dh71t)s' 

 

# 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',

CACHE_MIDDLEWARE_SECONDS = 600 

CACHE_MIDDLEWARE_KEY_PREFIX = '' 

CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True 

 

MIDDLEWARE_CLASSES = ( 

    'django.contrib.sessions.middleware.SessionMiddleware',

    'django.contrib.auth.middleware.AuthenticationMiddleware',

    'django.middleware.cache.UpdateCacheMiddleware',

    'django.middleware.common.CommonMiddleware',

    'django.middleware.cache.FetchFromCacheMiddleware',

    'django.middleware.http.ConditionalGetMiddleware',

    'django_openid.consumer.SessionConsumer',

    'account.middleware.LocaleMiddleware',

    'django.middleware.doc.XViewMiddleware',

    'pagination.middleware.PaginationMiddleware',

        'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',

 

ROOT_URLCONF = 'worbro.urls' 

 

TEMPLATE_DIRS = ( 

    os.path.join(os.path.dirname(__file__), "templates"),

)

 

TEMPLATE_CONTEXT_PROCESSORS = ( 

    "django.core.context_processors.auth",

    "django.core.context_processors.debug",

    "django.core.context_processors.i18n",

    "django.core.context_processors.media",

    "django.core.context_processors.request",

   

    "notification.context_processors.notification",

    "announcements.context_processors.site_wide_announcements",

    "account.context_processors.openid",

    "account.context_processors.account",

    "misc.context_processors.contact_email",

    "misc.context_processors.site_name",

 

    'worbro.blog.context_processors.blog',

    'worbro.core.context_processors.core',

 

 

INSTALLED_APPS = ( 

    # included

    'django.contrib.auth',

    'django.contrib.contenttypes',

    'django.contrib.sessions',

    'django.contrib.sites',

        'django.contrib.flatpages',

    'django.contrib.humanize',

    'django.contrib.admin',

    'django.contrib.markup',

   

    # external

    'notification', # must be first

    'django_openid',

    'emailconfirmation',

    'mailer',

    'announcements',

    'forum',

    'pagination',

    'photologue',

    'timezones',

    'ajax_validation',

    'tagging',

   

    # internal (for now)

    'basic_profiles',

    'account',

    'misc',

    'about',

    'worbro.blog',

    'worbro.core',

 

 

ABSOLUTE_URL_OVERRIDES = { 

    "auth.user": lambda o: "/profiles/%s/" % o.username,

 

AUTH_PROFILE_MODULE = 'basic_profiles.Profile' 

NOTIFICATION_LANGUAGE_MODULE = 'account.Account' 

 

 

# Registration Settings 

EMAIL_USE_TLS = True 

EMAIL_HOST = 'smtp.gmail.com' 

EMAIL_HOST_USER = 'burton.wj@gmail.com' 

EMAIL_HOST_PASSWORD = 'worbro666' 

EMAIL_PORT = 587 

 

 

#Email Settings 

EMAIL_CONFIRMATION_DAYS = 7 

EMAIL_DEBUG = DEBUG 

CONTACT_EMAIL = "burton.wj@gmail.com" 

SITE_NAME = "BurtonBlog" 

LOGIN_URL = "/account/login" 

LOGIN_REDIRECT_URLNAME = "what_next" 

 

# Date Settings 

DATE_FORMAT = 'd M Y' 

TIME_FORMAT = 'H:i' 

DATETIME_FORMAT = 'd M Y \a\t H:i' 

 

# Personal Settings 

SITE_NAME = 'BurtonBlog.net' 

TITLE = 'The Burton Family Homepage' 

 

# local_settings.py can be used to override environment-specific settings

# like database and email that differ between development and production. 

try: 

    from local_settings import *

except ImportError: 

    pass

Related Links:

Togel178

Pedetogel

Sabatoto

Togel279

Togel158

Colok178

Novaslot88

Lain-Lain

Partner Links