# Django settings for luxagraf. from os.path import dirname, abspath PROJ_ROOT = abspath(dirname(__file__))+'/' DEBUG = False TEMPLATE_DEBUG = DEBUG DEVELOPMENT = False ADMINS = ( ('sng', 'luxagraf@gmail.com'), ) CONTACT = ( ('sng', 'sng@luxagraf.net'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'NAME': 'luxagraf', 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'USER': 'luxagrafe', 'PASSWORD': 'translinguis#', 'HOST': 'web62.webfaction.com', } } #Email Setting for Webfaction EMAIL_HOST = 'mail2.webfaction.com' EMAIL_HOST_USER = 'luxagraf' EMAIL_HOST_PASSWORD = 'translinguis#' DEFAULT_FROM_EMAIL = 'sng@luxagraf.net' SEND_BROKEN_LINK_EMAILS = True SERVER_EMAIL = 'sng@luxagraf.net' EMAIL_PORT = 25 SITE_NAME = 'luxagraf' GRAPPELLI_ADMIN_TITLE = 'Luxagraf Admin' #API key for Google Maps in Admin MAP_API = "google" GOOGLE_MAPS_API_KEY = MAP_API_KEY = 'ABQIAAAAEZ0Oz7LFDmdS1OBHm6HLgRQT5Lr-mnFT_29u-YVgAYs_K_u6-BQ627CkPKq44oaHpmSt2497hDj_LQ' SITE_NAME = 'Luxagraf' # API key for askimet spam filter AKISMET_API_KEY = '23decc99e9ed' # API key for Flickr imports FLICKR_API_KEY = '7b9d978a440c6ab65a545adc0aa0d693' FLICKR_USER_ID = '85322932@N00' DELICIOUS_USER = 'luxagraf' DELICIOUS_PASS = 'translinguis#' TUMBLR_URL = 'luxagraf.tumblr.com' TUMBLR_PASSWORD = 'translinguis' TUMBLR_USER ='luxagraf@gmail.com' TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = PROJ_ROOT+'media/' IMAGES_ROOT = PROJ_ROOT+'media/images/' STATIC_ROOT = PROJ_ROOT+'static/' # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com" MEDIA_URL = 'http://media.luxagraf.net/' IMAGES_URL = 'http://images.luxagraf.net/' # 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/' # Make this unique, and don't share it with anybody. SECRET_KEY = '-kzv5^z9@j%cvk6u#lcf&nuga4oiy_-6q^-+#iybt44t_ii-1o' #CACHE_BACKEND = 'memcached://174.133.21.78:32348/' #CACHE_MIDDLEWARE_SECONDS = 3600 #CACHE_MIDDLEWARE_KEY_PREFIX = 'luxagraf_net' MIDDLEWARE_CLASSES = ( 'django.middleware.gzip.GZipMiddleware', #'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', # 'django.middleware.cache.FetchFromCacheMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'pagination.middleware.PaginationMiddleware', 'fdigg.middleware.FckDiggMiddleware', 'ssl.middleware.SSLRedirect', #'debug_toolbar.middleware.DebugToolbarMiddleware', ) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', 'django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.media', "grappelli.context_processors.admin_template_path", ) ROOT_URLCONF = 'base_urls' INTERNAL_IPS = ( '67.15.64.48', '63.251.179.56', '127.0.0.1' ) TEMPLATE_DIRS = ( PROJ_ROOT+'templates', PROJ_ROOT+'lib/templates', PROJ_ROOT+'lib/grappelli/templates', #PROJ_ROOT+'lib/debug_toolbar/templates', # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) TEMPLATE_LOADERS = ( ('django.template.loaders.cached.Loader', ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', )), ) INSTALLED_APPS = ( 'grappelli', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.sitemaps', 'django.contrib.gis', 'filebrowser', 'locations', 'blog', 'photos', #'tagging', 'taggit', 'chunks', 'links', 'pagination', 'templatetags', 'contact_form', 'projects' ) try: from settings_local import * except: pass