No Description
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.

defaults.py 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. DEBUG = True
  2. TEMPLATE_DEBUG = True
  3. LOGGING = {
  4. 'version': 1,
  5. 'disable_existing_loggers': False,
  6. 'formatters': {
  7. 'verbose': {
  8. 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s',
  9. },
  10. 'simple': {
  11. 'format': '%(levelname)s %(module)s %(funcName)s %(message)s',
  12. },
  13. },
  14. 'handlers': {
  15. 'console': {
  16. 'class': 'logging.StreamHandler',
  17. 'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
  18. 'formatter': 'simple',
  19. },
  20. },
  21. 'loggers': {
  22. 'django': {
  23. 'handlers': ['console'],
  24. 'propagate': True,
  25. 'level': 'DEBUG',
  26. },
  27. 'Lodel2.database': {
  28. 'handlers': ['console'],
  29. 'level': 'DEBUG',
  30. 'propagate': True,
  31. },
  32. 'EditorialModel' : {
  33. 'handlers': ['console'],
  34. 'propagate': True,
  35. 'level': 'DEBUG',
  36. },
  37. },
  38. }
  39. DATABASES = {
  40. 'default': {
  41. 'ENGINE': 'django.db.backends.mysql',
  42. 'NAME': 'lodel2',
  43. 'USER': 'lodel',
  44. 'PASSWORD': 'bruno',
  45. 'HOST': 'localhost',
  46. }
  47. }
  48. # Internationalization
  49. LANGUAGE_CODE = 'en-us'
  50. TIME_ZONE = 'UTC'
  51. USE_I18N = True
  52. USE_L10N = True
  53. USE_TZ = True