1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
# 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/'
# 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',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'fdigg.middleware.FckDiggMiddleware',
#'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.flatpages',
'django.contrib.sitemaps',
'django.contrib.gis',
'filebrowser',
'locations',
'blog',
'photos',
'tagging',
'chunks',
'links',
'pagination',
'templatetags',
'contact_form',
'projects'
)
try:
from settings_local import *
except:
pass
|