You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.5 KiB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
  1. """
  2. Django settings for pydash project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/1.6/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/1.6/ref/settings/
  7. """
  8. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  9. import os
  10. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  11. # Quick-start development settings - unsuitable for production
  12. # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
  13. # SECURITY WARNING: keep the secret key used in production secret!
  14. SECRET_KEY = '1)$crmowu-23tz@i2-d=7tb3t+1u&(pm!lnjyuarki^72h!3af'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ADMINS = (
  19. )
  20. MANAGERS = ADMINS
  21. TIMS_JS_REFRESH = 2000
  22. ALLOWED_HOSTS = ['*']
  23. # Application definition
  24. INSTALLED_APPS = (
  25. 'django.contrib.admin',
  26. 'django.contrib.auth',
  27. 'django.contrib.contenttypes',
  28. 'django.contrib.sessions',
  29. 'django.contrib.messages',
  30. 'django.contrib.staticfiles',
  31. )
  32. MIDDLEWARE_CLASSES = (
  33. 'django.contrib.sessions.middleware.SessionMiddleware',
  34. 'django.middleware.common.CommonMiddleware',
  35. 'django.middleware.csrf.CsrfViewMiddleware',
  36. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  37. 'django.contrib.messages.middleware.MessageMiddleware',
  38. # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  39. )
  40. ROOT_URLCONF = 'pydash.urls'
  41. WSGI_APPLICATION = 'pydash.wsgi.application'
  42. STATIC_URL = '/static/'
  43. STATICFILES_DIRS = (
  44. )
  45. STATICFILES_FINDERS = (
  46. 'django.contrib.staticfiles.finders.FileSystemFinder',
  47. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  48. # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
  49. )
  50. # Database
  51. # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
  52. DATABASES = {
  53. 'default': {
  54. 'ENGINE': 'django.db.backends.sqlite3',
  55. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  56. }
  57. }
  58. # Internationalization
  59. # https://docs.djangoproject.com/en/1.6/topics/i18n/
  60. LANGUAGE_CODE = 'en-us'
  61. TIME_ZONE = 'UTC'
  62. USE_I18N = True
  63. USE_L10N = True
  64. USE_TZ = True
  65. TEMPLATE_LOADERS = (
  66. 'django.template.loaders.filesystem.Loader',
  67. 'django.template.loaders.app_directories.Loader',
  68. # 'django.template.loaders.eggs.Loader',
  69. )
  70. TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '..', 'templates'),)
  71. # Static files (CSS, JavaScript, Images)
  72. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  73. STATIC_URL = '/static/'