Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

defaults.py 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. """
  2. Django settings for Lodel project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/1.7/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/1.7/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.7/howto/deployment/checklist/
  13. # SECURITY WARNING: keep the secret key used in production secret!
  14. SECRET_KEY = 'b43in=yebf(b7)77n^wwe&jp2m7*krco)+vz48&_%-wtd(8x-$'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ALLOWED_HOSTS = []
  19. LOGGING = {
  20. 'version': 1,
  21. 'disable_existing_loggers': False,
  22. 'handlers': {
  23. 'console': {
  24. 'class': 'logging.StreamHandler',
  25. 'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
  26. },
  27. },
  28. 'loggers': {
  29. 'django': {
  30. 'handlers': ['console'],
  31. 'propagate': True,
  32. 'level': 'DEBUG',
  33. },
  34. 'Lodel2.database': {
  35. 'handlers': ['console'],
  36. 'level': 'DEBUG',
  37. 'propagate': True,
  38. },
  39. },
  40. }
  41. # Application definition
  42. INSTALLED_APPS = (
  43. 'django.contrib.admin',
  44. 'django.contrib.auth',
  45. 'django.contrib.contenttypes',
  46. 'django.contrib.sessions',
  47. 'django.contrib.messages',
  48. 'django.contrib.staticfiles',
  49. )
  50. MIDDLEWARE_CLASSES = (
  51. 'django.contrib.sessions.middleware.SessionMiddleware',
  52. 'django.middleware.common.CommonMiddleware',
  53. 'django.middleware.csrf.CsrfViewMiddleware',
  54. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  55. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  56. 'django.contrib.messages.middleware.MessageMiddleware',
  57. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  58. )
  59. ROOT_URLCONF = 'Lodel.urls'
  60. WSGI_APPLICATION = 'Lodel.wsgi.application'
  61. # Database
  62. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  63. DATABASES = {
  64. 'default': {
  65. 'ENGINE': 'django.db.backends.sqlite3',
  66. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  67. }
  68. }
  69. # Internationalization
  70. # https://docs.djangoproject.com/en/1.7/topics/i18n/
  71. LANGUAGE_CODE = 'en-us'
  72. TIME_ZONE = 'UTC'
  73. USE_I18N = True
  74. USE_L10N = True
  75. USE_TZ = True
  76. # Static files (CSS, JavaScript, Images)
  77. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  78. STATIC_URL = '/static/'