Skip to content

Instantly share code, notes, and snippets.

@andybak
Created April 9, 2013 08:31
Show Gist options
  • Save andybak/5344001 to your computer and use it in GitHub Desktop.
Save andybak/5344001 to your computer and use it in GitHub Desktop.
import os
DEBUG = True
TEMPLATE_DEBUG = True
LOCAL_DEV = True
OFFLINE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': '',
'PORT': '',
'NAME': 'newcms',
'USER': 'andybak',
'TEST_NAME': None,
}
}
MEDIA_URL = '/media/'
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = STATIC_URL+'admin/'
FEINCMS_ADMIN_MEDIA = STATIC_URL+'js/tree_editor/'
# CMS App needs RELATIVE_MEDIA_URL set to MEDIA_URL without a server name. This code probably should be moved to the CMS app
if MEDIA_URL.startswith('http:'):
RELATIVE_MEDIA_URL = ('/'+'/'.join(MEDIA_URL.split('/')[3:]))[:-1]
else:
RELATIVE_MEDIA_URL = MEDIA_URL
PREPEND_WWW = False
MIDDLEWARE_CLASSES_LOCAL = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
#'cms.middleware.ProfileMiddleware'
]
INSTALLED_APPS_LOCAL = (
'debug_toolbar',
'django_extensions',
#'devserver',
#'test_utils',
)
SEND_BROKEN_LINK_EMAILS=False
#TEMPLATE_STRING_IF_INVALID = 'XXXX'
############## CMS settings #################
HIDE_MEMCACHED_WARNING = True
SEND_EMAILS = True
EMAIL_TEST_RECIPIENTS = ['andy@andybak.net',]
############## Compressor settings #################
COMPRESS = False
COMPRESS_ENABLED = False
############## Devserver settings #################
DEVSERVER_AUTO_PROFILE = True
DEVSERVER_IGNORED_PREFIXES = ['/media', '/uploads']
DEVSERVER_IGNORED_PREFIXES = []
DEVSERVER_MODULES = (
'devserver.modules.sql.SQLRealTimeModule',
'devserver.modules.sql.SQLSummaryModule',
'devserver.modules.profile.ProfileSummaryModule',
# Modules not enabled by default
'devserver.modules.ajax.AjaxDumpModule',
#'devserver.modules.profile.MemoryUseModule',
'devserver.modules.cache.CacheSummaryModule',
#'devserver.modules.profile.LineProfilerModule',
)
############## Filebrowser settings #################
FILEBROWSER_URL_WWW = MEDIA_URL+'/documents/'
FILEBROWSER_URL_FILEBROWSER_MEDIA = STATIC_URL+"filebrowser/"
############## Django-backup settings #################
BACKUP_SQLDUMP_PATH = 'mysqldump'
BACKUP_FTP_DIRECTORY = 'laptoptest'
############## Contact settings ##############
CONTACT_LINK_SUBSCRIBERS_TO_MAILCHIMP = False
############## Maintenance settings ##############
MAINTENANCE_MODE = False
################ Sorl Thumbnail settings ###############
THUMBNAIL_DUMMY = False
THUMBNAIL_DEBUG = True
################ Jimmy Page settings ###############
JIMMY_PAGE_DEBUG_CACHE = True
JIMMY_PAGE_DISABLED = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment