settings.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # Django settings for testproj project.
  2. import os
  3. import sys
  4. # import source code dir
  5. sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
  6. DEBUG = True
  7. TEMPLATE_DEBUG = DEBUG
  8. ADMINS = (
  9. # ('Your Name', 'your_email@domain.com'),
  10. )
  11. TEST_RUNNER = "yadayada.test.run_tests"
  12. TEST_APPS = (
  13. "celery",
  14. )
  15. AMQP_SERVER = "localhost"
  16. AMQP_PORT = 5672
  17. AMQP_VHOST = "celery"
  18. AMQP_USER = "celery"
  19. AMQP_PASSWORD = "celery"
  20. AMQP_EXCHANGE = "testcelery"
  21. AMQP_ROUTING_KEY = "testcelery"
  22. AMQP_CONSUMER_QUEUE = "testcelery"
  23. MANAGERS = ADMINS
  24. DATABASE_ENGINE = 'sqlite3'
  25. DATABASE_NAME = 'testdb.sqlite'
  26. DATABASE_USER = ''
  27. DATABASE_PASSWORD = ''
  28. DATABASE_HOST = ''
  29. DATABASE_PORT = ''
  30. # Local time zone for this installation. Choices can be found here:
  31. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  32. # although not all choices may be available on all operating systems.
  33. # If running in a Windows environment this must be set to the same as your
  34. # system time zone.
  35. TIME_ZONE = 'America/Chicago'
  36. # Language code for this installation. All choices can be found here:
  37. # http://www.i18nguy.com/unicode/language-identifiers.html
  38. LANGUAGE_CODE = 'en-us'
  39. SITE_ID = 1
  40. # If you set this to False, Django will make some optimizations so as not
  41. # to load the internationalization machinery.
  42. USE_I18N = True
  43. # Absolute path to the directory that holds media.
  44. # Example: "/home/media/media.lawrence.com/"
  45. MEDIA_ROOT = ''
  46. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  47. # trailing slash if there is a path component (optional in other cases).
  48. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  49. MEDIA_URL = ''
  50. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  51. # trailing slash.
  52. # Examples: "http://foo.com/media/", "/media/".
  53. ADMIN_MEDIA_PREFIX = '/media/'
  54. # Make this unique, and don't share it with anybody.
  55. SECRET_KEY = '8j5$cwnv#bcdq(bolyf*#6icpmqn!o7^-q*b#n!=_r3!ol$932'
  56. # List of callables that know how to import templates from various sources.
  57. TEMPLATE_LOADERS = (
  58. 'django.template.loaders.filesystem.load_template_source',
  59. 'django.template.loaders.app_directories.load_template_source',
  60. # 'django.template.loaders.eggs.load_template_source',
  61. )
  62. MIDDLEWARE_CLASSES = (
  63. 'django.middleware.common.CommonMiddleware',
  64. 'django.contrib.sessions.middleware.SessionMiddleware',
  65. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  66. )
  67. ROOT_URLCONF = 'testproj.urls'
  68. TEMPLATE_DIRS = (
  69. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  70. # Always use forward slashes, even on Windows.
  71. # Don't forget to use absolute paths, not relative paths.
  72. )
  73. INSTALLED_APPS = (
  74. 'django.contrib.auth',
  75. 'django.contrib.contenttypes',
  76. 'django.contrib.sessions',
  77. 'django.contrib.sites',
  78. 'celery'
  79. )