gremmie@1: # Django settings for gpp project. gremmie@1: gremmie@1: import os gremmie@1: import platform gremmie@1: import local_settings gremmie@1: project_path = os.path.abspath(os.path.split(__file__)[0]) gremmie@1: gremmie@1: DEBUG = local_settings.DEBUG gremmie@1: TEMPLATE_DEBUG = DEBUG gremmie@1: gremmie@1: ADMINS = ( gremmie@1: ('Brian Neal', 'admin@surfguitar101.com'), gremmie@1: ) gremmie@1: gremmie@1: AUTH_PROFILE_MODULE = 'bio.userprofile' gremmie@1: gremmie@1: MANAGERS = ADMINS gremmie@1: gremmie@1: DATABASE_ENGINE = local_settings.DATABASE_ENGINE gremmie@1: DATABASE_NAME = local_settings.DATABASE_NAME gremmie@1: DATABASE_USER = local_settings.DATABASE_USER gremmie@1: DATABASE_PASSWORD = local_settings.DATABASE_PASSWORD gremmie@1: DATABASE_HOST = local_settings.DATABASE_HOST gremmie@1: DATABASE_PORT = local_settings.DATABASE_PORT gremmie@1: gremmie@1: INTERNAL_IPS = local_settings.INTERNAL_IPS gremmie@1: gremmie@1: # Local time zone for this installation. Choices can be found here: gremmie@1: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name gremmie@1: # although not all choices may be available on all operating systems. gremmie@1: # If running in a Windows environment this must be set to the same as your gremmie@1: # system time zone. gremmie@1: TIME_ZONE = local_settings.TIME_ZONE gremmie@1: gremmie@1: # Language code for this installation. All choices can be found here: gremmie@1: # http://www.i18nguy.com/unicode/language-identifiers.html gremmie@1: LANGUAGE_CODE = 'en-us' gremmie@1: gremmie@1: SITE_ID = local_settings.SITE_ID gremmie@1: gremmie@1: # If you set this to False, Django will make some optimizations so as not gremmie@1: # to load the internationalization machinery. gremmie@1: USE_I18N = False gremmie@1: gremmie@1: # Absolute path to the directory that holds media. gremmie@1: # Example: "/home/media/media.lawrence.com/" gremmie@1: MEDIA_ROOT = local_settings.MEDIA_ROOT gremmie@1: gremmie@1: # URL that handles the media served from MEDIA_ROOT. Make sure to use a gremmie@1: # trailing slash if there is a path component (optional in other cases). gremmie@1: # Examples: "http://media.lawrence.com", "http://example.com/media/" gremmie@1: MEDIA_URL = local_settings.MEDIA_URL gremmie@1: gremmie@1: # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a gremmie@1: # trailing slash. gremmie@1: # Examples: "http://foo.com/media/", "/media/". gremmie@1: ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX gremmie@1: gremmie@1: # Make this unique, and don't share it with anybody. gremmie@1: SECRET_KEY = local_settings.SECRET_KEY gremmie@1: gremmie@1: # List of callables that know how to import templates from various sources. gremmie@1: TEMPLATE_LOADERS = ( gremmie@1: 'django.template.loaders.filesystem.load_template_source', gremmie@1: 'django.template.loaders.app_directories.load_template_source', gremmie@1: # 'django.template.loaders.eggs.load_template_source', gremmie@1: ) gremmie@1: gremmie@1: MIDDLEWARE_CLASSES = ( gremmie@1: 'django.middleware.common.CommonMiddleware', gremmie@1: 'django.contrib.sessions.middleware.SessionMiddleware', gremmie@1: 'django.contrib.auth.middleware.AuthenticationMiddleware', gremmie@1: ) gremmie@1: gremmie@1: ROOT_URLCONF = 'gpp.urls' gremmie@1: gremmie@1: TEMPLATE_DIRS = ( gremmie@1: # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". gremmie@1: # Always use forward slashes, even on Windows. gremmie@1: # Don't forget to use absolute paths, not relative paths. gremmie@1: os.path.join(project_path, 'templates'), gremmie@1: ) gremmie@1: gremmie@1: TEMPLATE_CONTEXT_PROCESSORS = ( gremmie@1: "django.core.context_processors.auth", gremmie@1: "django.core.context_processors.debug", gremmie@1: "django.core.context_processors.request", gremmie@1: "django.core.context_processors.media" gremmie@1: ) gremmie@1: gremmie@1: INSTALLED_APPS = ( gremmie@1: 'django.contrib.admin', gremmie@1: 'django.contrib.admindocs', gremmie@1: 'django.contrib.auth', gremmie@1: 'django.contrib.contenttypes', gremmie@1: 'django.contrib.sessions', gremmie@1: 'django.contrib.sites', gremmie@1: 'django.contrib.markup', gremmie@1: 'tagging', gremmie@1: 'accounts', gremmie@1: 'bio', gremmie@1: 'bulletins', gremmie@1: 'comments', gremmie@1: 'contact', gremmie@1: 'core', gremmie@1: 'downloads', gremmie@1: 'gcalendar', gremmie@1: 'irc', gremmie@1: 'legal', gremmie@1: 'membermap', gremmie@1: 'messages', gremmie@1: 'news', gremmie@1: 'podcast', gremmie@1: 'polls', gremmie@1: 'potd', gremmie@1: 'shoutbox', gremmie@1: 'smiley', gremmie@1: 'weblinks', gremmie@1: ) gremmie@1: gremmie@1: LOGIN_URL = '/accounts/login/' gremmie@1: LOGIN_REDIRECT_URL = '/profile/me/' gremmie@1: LOGOUT_URL = '/accounts/logout/' gremmie@1: gremmie@1: FILE_UPLOAD_PERMISSIONS = 0640 gremmie@1: gremmie@1: ####################################################################### gremmie@1: # Tagging Specific Settings gremmie@1: ####################################################################### gremmie@1: FORCE_LOWERCASE_TAGS = True gremmie@1: MAX_TAG_LENGTH = 50 gremmie@1: gremmie@1: ####################################################################### gremmie@1: # GPP Specific Settings gremmie@1: ####################################################################### gremmie@1: GPP_LOG_LEVEL = 0 gremmie@1: GPP_SEND_EMAIL = False gremmie@1: GPP_NO_REPLY_EMAIL = 'no_reply' gremmie@1: AVATAR_DIR = 'avatars' gremmie@1: MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024 gremmie@1: MAX_AVATAR_SIZE_PIXELS = 100 gremmie@1: AVATAR_DEFAULT_URL = MEDIA_URL + AVATAR_DIR + '/default.png' bgneal@6: bgneal@6: # URL's of 3rd party Javascript and CSS files. bgneal@6: # These dictionaries are used by core/templatetags/script_tags, and bgneal@6: # should also be used by developers when creating form media classes. bgneal@6: GPP_THIRD_PARTY_JS = { bgneal@6: 'jquery': ( bgneal@6: 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', bgneal@6: ), bgneal@6: 'jquery-autocomplete': ( bgneal@6: 'js/jquery-autocomplete/lib/jquery.js', bgneal@6: 'js/jquery-autocomplete/lib/jquery.bgiframe.min.js', bgneal@6: 'js/jquery-autocomplete/lib/jquery.ajaxQueue.js', bgneal@6: 'js/jquery-autocomplete/jquery.autocomplete.js', bgneal@6: ), bgneal@6: 'jquery-jeditable': ( bgneal@6: 'js/jquery.jeditable.mini.js', bgneal@6: ), bgneal@6: 'jquery-ui': ( bgneal@6: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/jquery-ui.js', bgneal@6: ), bgneal@6: 'markitup': ( bgneal@6: 'js/markitup/jquery.markitup.pack.js', bgneal@6: 'js/markitup/sets/markdown/set.js', bgneal@6: ), bgneal@6: } bgneal@6: GPP_THIRD_PARTY_CSS = { bgneal@6: 'jquery-ui': ( bgneal@6: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/redmond/jquery-ui.css', bgneal@6: ), bgneal@6: 'jquery-autocomplete': ( bgneal@6: 'js/jquery-autocomplete/jquery.autocomplete.css', bgneal@6: ), bgneal@6: 'markitup': ( bgneal@6: 'js/markitup/skins/markitup/style.css', bgneal@6: 'js/markitup/sets/markdown/style.css', bgneal@6: ), bgneal@6: } bgneal@6: bgneal@6: # vim: ts=4 sw=4