global_settings.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. # Default Django settings. Override these with settings in the module
  2. # pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
  3. # This is defined here as a do-nothing function because we can't import
  4. # django.utils.translation -- that module depends on the settings.
  5. gettext_noop = lambda s: s
  6. ####################
  7. # CORE #
  8. ####################
  9. DEBUG = False
  10. TEMPLATE_DEBUG = False
  11. # Whether the framework should propagate raw exceptions rather than catching
  12. # them. This is useful under some testing siutations and should never be used
  13. # on a live site.
  14. DEBUG_PROPAGATE_EXCEPTIONS = False
  15. # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
  16. USE_ETAGS = False
  17. # People who get code error notifications.
  18. # In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com'))
  19. ADMINS = ()
  20. # Tuple of IP addresses, as strings, that:
  21. # * See debug comments, when DEBUG is true
  22. # * Receive x-headers
  23. INTERNAL_IPS = ()
  24. # Local time zone for this installation. All choices can be found here:
  25. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
  26. # systems may support all possibilities).
  27. TIME_ZONE = 'America/Chicago'
  28. # Language code for this installation. All choices can be found here:
  29. # http://www.i18nguy.com/unicode/language-identifiers.html
  30. LANGUAGE_CODE = 'en-us'
  31. # Languages we provide translations for, out of the box. The language name
  32. # should be the utf-8 encoded local name for the language.
  33. LANGUAGES = (
  34. ('ar', gettext_noop('Arabic')),
  35. ('bg', gettext_noop('Bulgarian')),
  36. ('bn', gettext_noop('Bengali')),
  37. ('bs', gettext_noop('Bosnian')),
  38. ('ca', gettext_noop('Catalan')),
  39. ('cs', gettext_noop('Czech')),
  40. ('cy', gettext_noop('Welsh')),
  41. ('da', gettext_noop('Danish')),
  42. ('de', gettext_noop('German')),
  43. ('el', gettext_noop('Greek')),
  44. ('en', gettext_noop('English')),
  45. ('en-gb', gettext_noop('British English')),
  46. ('es', gettext_noop('Spanish')),
  47. ('es-ar', gettext_noop('Argentinian Spanish')),
  48. ('et', gettext_noop('Estonian')),
  49. ('eu', gettext_noop('Basque')),
  50. ('fa', gettext_noop('Persian')),
  51. ('fi', gettext_noop('Finnish')),
  52. ('fr', gettext_noop('French')),
  53. ('fy-nl', gettext_noop('Frisian')),
  54. ('ga', gettext_noop('Irish')),
  55. ('gl', gettext_noop('Galician')),
  56. ('he', gettext_noop('Hebrew')),
  57. ('hi', gettext_noop('Hindi')),
  58. ('hr', gettext_noop('Croatian')),
  59. ('hu', gettext_noop('Hungarian')),
  60. ('id', gettext_noop('Indonesian')),
  61. ('is', gettext_noop('Icelandic')),
  62. ('it', gettext_noop('Italian')),
  63. ('ja', gettext_noop('Japanese')),
  64. ('ka', gettext_noop('Georgian')),
  65. ('km', gettext_noop('Khmer')),
  66. ('kn', gettext_noop('Kannada')),
  67. ('ko', gettext_noop('Korean')),
  68. ('lt', gettext_noop('Lithuanian')),
  69. ('lv', gettext_noop('Latvian')),
  70. ('mk', gettext_noop('Macedonian')),
  71. ('ml', gettext_noop('Malayalam')),
  72. ('mn', gettext_noop('Mongolian')),
  73. ('nl', gettext_noop('Dutch')),
  74. ('no', gettext_noop('Norwegian')),
  75. ('nb', gettext_noop('Norwegian Bokmal')),
  76. ('nn', gettext_noop('Norwegian Nynorsk')),
  77. ('pa', gettext_noop('Punjabi')),
  78. ('pl', gettext_noop('Polish')),
  79. ('pt', gettext_noop('Portuguese')),
  80. ('pt-br', gettext_noop('Brazilian Portuguese')),
  81. ('ro', gettext_noop('Romanian')),
  82. ('ru', gettext_noop('Russian')),
  83. ('sk', gettext_noop('Slovak')),
  84. ('sl', gettext_noop('Slovenian')),
  85. ('sq', gettext_noop('Albanian')),
  86. ('sr', gettext_noop('Serbian')),
  87. ('sr-latn', gettext_noop('Serbian Latin')),
  88. ('sv', gettext_noop('Swedish')),
  89. ('ta', gettext_noop('Tamil')),
  90. ('te', gettext_noop('Telugu')),
  91. ('th', gettext_noop('Thai')),
  92. ('tr', gettext_noop('Turkish')),
  93. ('uk', gettext_noop('Ukrainian')),
  94. ('vi', gettext_noop('Vietnamese')),
  95. ('zh-cn', gettext_noop('Simplified Chinese')),
  96. ('zh-tw', gettext_noop('Traditional Chinese')),
  97. )
  98. # Languages using BiDi (right-to-left) layout
  99. LANGUAGES_BIDI = ("he", "ar", "fa")
  100. # If you set this to False, Django will make some optimizations so as not
  101. # to load the internationalization machinery.
  102. USE_I18N = True
  103. LOCALE_PATHS = ()
  104. LANGUAGE_COOKIE_NAME = 'django_language'
  105. # If you set this to True, Django will format dates, numbers and calendars
  106. # according to user current locale
  107. USE_L10N = False
  108. # Not-necessarily-technical managers of the site. They get broken link
  109. # notifications and other various e-mails.
  110. MANAGERS = ADMINS
  111. # Default content type and charset to use for all HttpResponse objects, if a
  112. # MIME type isn't manually specified. These are used to construct the
  113. # Content-Type header.
  114. DEFAULT_CONTENT_TYPE = 'text/html'
  115. DEFAULT_CHARSET = 'utf-8'
  116. # Encoding of files read from disk (template and initial SQL files).
  117. FILE_CHARSET = 'utf-8'
  118. # E-mail address that error messages come from.
  119. SERVER_EMAIL = 'root@localhost'
  120. # Whether to send broken-link e-mails.
  121. SEND_BROKEN_LINK_EMAILS = False
  122. # Database connection info.
  123. # Legacy format
  124. DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  125. DATABASE_NAME = '' # Or path to database file if using sqlite3.
  126. DATABASE_USER = '' # Not used with sqlite3.
  127. DATABASE_PASSWORD = '' # Not used with sqlite3.
  128. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
  129. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
  130. DATABASE_OPTIONS = {} # Set to empty dictionary for default.
  131. # New format
  132. DATABASES = {
  133. }
  134. # Classes used to implement db routing behaviour
  135. DATABASE_ROUTERS = []
  136. # The email backend to use. For possible shortcuts see django.core.mail.
  137. # The default is to use the SMTP backend.
  138. # Third-party backends can be specified by providing a Python path
  139. # to a module that defines an EmailBackend class.
  140. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  141. # Host for sending e-mail.
  142. EMAIL_HOST = 'localhost'
  143. # Port for sending e-mail.
  144. EMAIL_PORT = 25
  145. # Optional SMTP authentication information for EMAIL_HOST.
  146. EMAIL_HOST_USER = ''
  147. EMAIL_HOST_PASSWORD = ''
  148. EMAIL_USE_TLS = False
  149. # List of strings representing installed apps.
  150. INSTALLED_APPS = ()
  151. # List of locations of the template source files, in search order.
  152. TEMPLATE_DIRS = ()
  153. # List of callables that know how to import templates from various sources.
  154. # See the comments in django/core/template/loader.py for interface
  155. # documentation.
  156. TEMPLATE_LOADERS = (
  157. 'django.template.loaders.filesystem.Loader',
  158. 'django.template.loaders.app_directories.Loader',
  159. # 'django.template.loaders.eggs.Loader',
  160. )
  161. # List of processors used by RequestContext to populate the context.
  162. # Each one should be a callable that takes the request object as its
  163. # only parameter and returns a dictionary to add to the context.
  164. TEMPLATE_CONTEXT_PROCESSORS = (
  165. 'django.contrib.auth.context_processors.auth',
  166. 'django.core.context_processors.debug',
  167. 'django.core.context_processors.i18n',
  168. 'django.contrib.staticfiles.context_processors.staticfiles',
  169. # 'django.core.context_processors.request',
  170. 'django.contrib.messages.context_processors.messages',
  171. )
  172. # Output to use in template system for invalid (e.g. misspelled) variables.
  173. TEMPLATE_STRING_IF_INVALID = ''
  174. # Default e-mail address to use for various automated correspondence from
  175. # the site managers.
  176. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  177. # Subject-line prefix for email messages send with django.core.mail.mail_admins
  178. # or ...mail_managers. Make sure to include the trailing space.
  179. EMAIL_SUBJECT_PREFIX = '[Django] '
  180. # Whether to append trailing slashes to URLs.
  181. APPEND_SLASH = True
  182. # Whether to prepend the "www." subdomain to URLs that don't have it.
  183. PREPEND_WWW = False
  184. # Override the server-derived value of SCRIPT_NAME
  185. FORCE_SCRIPT_NAME = None
  186. # List of compiled regular expression objects representing User-Agent strings
  187. # that are not allowed to visit any page, systemwide. Use this for bad
  188. # robots/crawlers. Here are a few examples:
  189. # import re
  190. # DISALLOWED_USER_AGENTS = (
  191. # re.compile(r'^NaverBot.*'),
  192. # re.compile(r'^EmailSiphon.*'),
  193. # re.compile(r'^SiteSucker.*'),
  194. # re.compile(r'^sohu-search')
  195. # )
  196. DISALLOWED_USER_AGENTS = ()
  197. ABSOLUTE_URL_OVERRIDES = {}
  198. # Tuple of strings representing allowed prefixes for the {% ssi %} tag.
  199. # Example: ('/home/html', '/var/www')
  200. ALLOWED_INCLUDE_ROOTS = ()
  201. # If this is a admin settings module, this should be a list of
  202. # settings modules (in the format 'foo.bar.baz') for which this admin
  203. # is an admin.
  204. ADMIN_FOR = ()
  205. # 404s that may be ignored.
  206. IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
  207. IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
  208. # A secret key for this particular Django installation. Used in secret-key
  209. # hashing algorithms. Set this in your settings, or Django will complain
  210. # loudly.
  211. SECRET_KEY = ''
  212. # Default file storage mechanism that holds media.
  213. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  214. # Absolute path to the directory that holds media.
  215. # Example: "/home/media/media.lawrence.com/"
  216. MEDIA_ROOT = ''
  217. # URL that handles the media served from MEDIA_ROOT.
  218. # Example: "http://media.lawrence.com"
  219. MEDIA_URL = ''
  220. # List of upload handler classes to be applied in order.
  221. FILE_UPLOAD_HANDLERS = (
  222. 'django.core.files.uploadhandler.MemoryFileUploadHandler',
  223. 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
  224. )
  225. # Maximum size, in bytes, of a request before it will be streamed to the
  226. # file system instead of into memory.
  227. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
  228. # Directory in which upload streamed files will be temporarily saved. A value of
  229. # `None` will make Django use the operating system's default temporary directory
  230. # (i.e. "/tmp" on *nix systems).
  231. FILE_UPLOAD_TEMP_DIR = None
  232. # The numeric mode to set newly-uploaded files to. The value should be a mode
  233. # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
  234. FILE_UPLOAD_PERMISSIONS = None
  235. # Python module path where user will place custom format definition.
  236. # The directory where this setting is pointing should contain subdirectories
  237. # named as the locales, containing a formats.py file
  238. # (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
  239. FORMAT_MODULE_PATH = None
  240. # Default formatting for date objects. See all available format strings here:
  241. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  242. DATE_FORMAT = 'N j, Y'
  243. # Default formatting for datetime objects. See all available format strings here:
  244. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  245. DATETIME_FORMAT = 'N j, Y, P'
  246. # Default formatting for time objects. See all available format strings here:
  247. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  248. TIME_FORMAT = 'P'
  249. # Default formatting for date objects when only the year and month are relevant.
  250. # See all available format strings here:
  251. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  252. YEAR_MONTH_FORMAT = 'F Y'
  253. # Default formatting for date objects when only the month and day are relevant.
  254. # See all available format strings here:
  255. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  256. MONTH_DAY_FORMAT = 'F j'
  257. # Default short formatting for date objects. See all available format strings here:
  258. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  259. SHORT_DATE_FORMAT = 'm/d/Y'
  260. # Default short formatting for datetime objects.
  261. # See all available format strings here:
  262. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  263. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  264. # Default formats to be used when parsing dates from input boxes, in order
  265. # See all available format string here:
  266. # http://docs.python.org/library/datetime.html#strftime-behavior
  267. # * Note that these format strings are different from the ones to display dates
  268. DATE_INPUT_FORMATS = (
  269. '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
  270. '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
  271. '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
  272. '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
  273. '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
  274. )
  275. # Default formats to be used when parsing times from input boxes, in order
  276. # See all available format string here:
  277. # http://docs.python.org/library/datetime.html#strftime-behavior
  278. # * Note that these format strings are different from the ones to display dates
  279. TIME_INPUT_FORMATS = (
  280. '%H:%M:%S', # '14:30:59'
  281. '%H:%M', # '14:30'
  282. )
  283. # Default formats to be used when parsing dates and times from input boxes,
  284. # in order
  285. # See all available format string here:
  286. # http://docs.python.org/library/datetime.html#strftime-behavior
  287. # * Note that these format strings are different from the ones to display dates
  288. DATETIME_INPUT_FORMATS = (
  289. '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
  290. '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
  291. '%Y-%m-%d', # '2006-10-25'
  292. '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
  293. '%m/%d/%Y %H:%M', # '10/25/2006 14:30'
  294. '%m/%d/%Y', # '10/25/2006'
  295. '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
  296. '%m/%d/%y %H:%M', # '10/25/06 14:30'
  297. '%m/%d/%y', # '10/25/06'
  298. )
  299. # First day of week, to be used on calendars
  300. # 0 means Sunday, 1 means Monday...
  301. FIRST_DAY_OF_WEEK = 0
  302. # Decimal separator symbol
  303. DECIMAL_SEPARATOR = '.'
  304. # Boolean that sets whether to add thousand separator when formatting numbers
  305. USE_THOUSAND_SEPARATOR = False
  306. # Number of digits that will be together, when spliting them by
  307. # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
  308. NUMBER_GROUPING = 0
  309. # Thousand separator symbol
  310. THOUSAND_SEPARATOR = ','
  311. # Do you want to manage transactions manually?
  312. # Hint: you really don't!
  313. TRANSACTIONS_MANAGED = False
  314. # The User-Agent string to use when checking for URL validity through the
  315. # isExistingURL validator.
  316. from django import get_version
  317. URL_VALIDATOR_USER_AGENT = "Django/%s (http://www.djangoproject.com)" % get_version()
  318. # The tablespaces to use for each model when not specified otherwise.
  319. DEFAULT_TABLESPACE = ''
  320. DEFAULT_INDEX_TABLESPACE = ''
  321. ##############
  322. # MIDDLEWARE #
  323. ##############
  324. # List of middleware classes to use. Order is important; in the request phase,
  325. # this middleware classes will be applied in the order given, and in the
  326. # response phase the middleware will be applied in reverse order.
  327. MIDDLEWARE_CLASSES = (
  328. 'django.middleware.common.CommonMiddleware',
  329. 'django.contrib.sessions.middleware.SessionMiddleware',
  330. 'django.middleware.csrf.CsrfViewMiddleware',
  331. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  332. 'django.contrib.messages.middleware.MessageMiddleware',
  333. # 'django.middleware.http.ConditionalGetMiddleware',
  334. # 'django.middleware.gzip.GZipMiddleware',
  335. )
  336. ############
  337. # SESSIONS #
  338. ############
  339. SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want.
  340. SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
  341. SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie.
  342. SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only).
  343. SESSION_COOKIE_PATH = '/' # The path of the session cookie.
  344. SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
  345. SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether a user's session cookie expires when the Web browser is closed.
  346. SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data
  347. SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If None, the backend will use a sensible default.
  348. #########
  349. # CACHE #
  350. #########
  351. # The cache backend to use. See the docstring in django.core.cache for the
  352. # possible values.
  353. CACHE_BACKEND = 'locmem://'
  354. CACHE_MIDDLEWARE_KEY_PREFIX = ''
  355. CACHE_MIDDLEWARE_SECONDS = 600
  356. ####################
  357. # COMMENTS #
  358. ####################
  359. COMMENTS_ALLOW_PROFANITIES = False
  360. # The profanities that will trigger a validation error in the
  361. # 'hasNoProfanities' validator. All of these should be in lowercase.
  362. PROFANITIES_LIST = ()
  363. # The group ID that designates which users are banned.
  364. # Set to None if you're not using it.
  365. COMMENTS_BANNED_USERS_GROUP = None
  366. # The group ID that designates which users can moderate comments.
  367. # Set to None if you're not using it.
  368. COMMENTS_MODERATORS_GROUP = None
  369. # The group ID that designates the users whose comments should be e-mailed to MANAGERS.
  370. # Set to None if you're not using it.
  371. COMMENTS_SKETCHY_USERS_GROUP = None
  372. # The system will e-mail MANAGERS the first COMMENTS_FIRST_FEW comments by each
  373. # user. Set this to 0 if you want to disable it.
  374. COMMENTS_FIRST_FEW = 0
  375. # A tuple of IP addresses that have been banned from participating in various
  376. # Django-powered features.
  377. BANNED_IPS = ()
  378. ##################
  379. # AUTHENTICATION #
  380. ##################
  381. AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
  382. LOGIN_URL = '/accounts/login/'
  383. LOGOUT_URL = '/accounts/logout/'
  384. LOGIN_REDIRECT_URL = '/accounts/profile/'
  385. # The number of days a password reset link is valid for
  386. PASSWORD_RESET_TIMEOUT_DAYS = 3
  387. ########
  388. # CSRF #
  389. ########
  390. # Dotted path to callable to be used as view when a request is
  391. # rejected by the CSRF middleware.
  392. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  393. # Name and domain for CSRF cookie.
  394. CSRF_COOKIE_NAME = 'csrftoken'
  395. CSRF_COOKIE_DOMAIN = None
  396. ############
  397. # MESSAGES #
  398. ############
  399. # Class to use as messges backend
  400. MESSAGE_STORAGE = 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
  401. # Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within
  402. # django.contrib.messages to avoid imports in this settings file.
  403. ###########
  404. # LOGGING #
  405. ###########
  406. # The callable to use to configure logging
  407. LOGGING_CONFIG = 'django.utils.log.dictConfig'
  408. # The default logging configuration. This sends an email to
  409. # the site admins on every HTTP 500 error. All other log
  410. # records are sent to the bit bucket.
  411. LOGGING = {
  412. 'version': 1,
  413. 'disable_existing_loggers': False,
  414. 'handlers': {
  415. 'mail_admins': {
  416. 'level': 'ERROR',
  417. 'class': 'django.utils.log.AdminEmailHandler'
  418. }
  419. },
  420. 'loggers': {
  421. 'django.request':{
  422. 'handlers': ['mail_admins'],
  423. 'level': 'ERROR',
  424. 'propagate': True,
  425. },
  426. }
  427. }
  428. ###########
  429. # TESTING #
  430. ###########
  431. # The name of the class to use to run the test suite
  432. TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
  433. # The name of the database to use for testing purposes.
  434. # If None, a name of 'test_' + DATABASE_NAME will be assumed
  435. TEST_DATABASE_NAME = None
  436. # Strings used to set the character set and collation order for the test
  437. # database. These values are passed literally to the server, so they are
  438. # backend-dependent. If None, no special settings are sent (system defaults are
  439. # used).
  440. TEST_DATABASE_CHARSET = None
  441. TEST_DATABASE_COLLATION = None
  442. ############
  443. # FIXTURES #
  444. ############
  445. # The list of directories to search for fixtures
  446. FIXTURE_DIRS = ()
  447. ###############
  448. # STATICFILES #
  449. ###############
  450. # Absolute path to the directory that holds media.
  451. # Example: "/home/media/media.lawrence.com/static/"
  452. STATICFILES_ROOT = ''
  453. # URL that handles the static files served from STATICFILES_ROOT.
  454. # Example: "http://media.lawrence.com/static/"
  455. STATICFILES_URL = '/static/'
  456. # A list of locations of additional static files
  457. STATICFILES_DIRS = ()
  458. # The default file storage backend used during the build process
  459. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  460. # List of finder classes that know how to find static files in
  461. # various locations.
  462. STATICFILES_FINDERS = (
  463. 'django.contrib.staticfiles.finders.FileSystemFinder',
  464. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  465. # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
  466. )
  467. # URL prefix for admin media -- CSS, JavaScript and images.
  468. # Make sure to use a trailing slash.
  469. # Examples: "http://foo.com/static/admin/", "/static/admin/".
  470. ADMIN_MEDIA_PREFIX = '/static/admin/'