settings.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. """
  2. Django settings for hackathon_starter 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 = 'keuhh=0*%do-ayvy*m2k=vss*$7)j8q!@u0+d^na7mi2(^!l!d'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ALLOWED_HOSTS = []
  19. # Application definition
  20. INSTALLED_APPS = (
  21. 'django.contrib.admin',
  22. 'django.contrib.auth',
  23. 'django.contrib.contenttypes',
  24. 'django.contrib.sessions',
  25. 'django.contrib.messages',
  26. 'django.contrib.staticfiles',
  27. 'hackathon',
  28. 'bootstrapform',
  29. # 'django_openid',
  30. 'django_nose',
  31. 'rest_framework',
  32. 'corsheaders',
  33. )
  34. MIDDLEWARE_CLASSES = (
  35. 'django.contrib.sessions.middleware.SessionMiddleware',
  36. 'corsheaders.middleware.CorsMiddleware',
  37. 'django.middleware.common.CommonMiddleware',
  38. 'django.middleware.csrf.CsrfViewMiddleware',
  39. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  40. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  41. 'django.contrib.messages.middleware.MessageMiddleware',
  42. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  43. #'django_openid_consumer.SessionConsumer',
  44. )
  45. ROOT_URLCONF = 'hackathon_starter.urls'
  46. WSGI_APPLICATION = 'hackathon_starter.wsgi.application'
  47. # Database
  48. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  49. DATABASES = {
  50. 'default': {
  51. 'ENGINE': 'django.db.backends.sqlite3',
  52. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  53. }
  54. }
  55. # Internationalization
  56. # https://docs.djangoproject.com/en/1.7/topics/i18n/
  57. LANGUAGE_CODE = 'en-us'
  58. TIME_ZONE = 'UTC'
  59. USE_I18N = True
  60. USE_L10N = True
  61. USE_TZ = True
  62. # Static files (CSS, JavaScript, Images)
  63. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  64. STATIC_URL = '/static/'
  65. TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
  66. # Use nose to run all tests
  67. TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
  68. # Tell nose to measure coverage on the 'foo' and 'bar' apps
  69. NOSE_ARGS = [
  70. '--with-coverage',
  71. '--cover-package=hackathon/scripts',
  72. ]
  73. CORS_ORIGIN_ALLOW_ALL = True
  74. ############
  75. # KEYS #
  76. ############
  77. GITHUB_CLIENT_ID = 'client_id=2404a1e21aebd902f6db'
  78. GITHUB_CLIENT_SECRET = 'client_secret=3da44769d4b7c9465fa4c812669148a163607c23'
  79. TUMBLR_CONSUMER_KEY = 'KrSbAc9cYLmIgVAn1D21FjRR97QWsutNMxkPDFBxo8CMWtMk4M'
  80. TUMBLR_CONSUMER_SECRET ='lKWMtL2Lj8zr5pY51PVqT8ugeoG0DjrdgoFewM0QTSyJ12jP8d'
  81. TWITTER_TOKEN = 'F05dgLAzHEOalb4K2xDQ8Umm8'
  82. TWITTER_SECRET = 'Yy3a74Z7gvyhxRruJsvUtUl8uK8iv6qKkVqbZSijUxK71Z1qTY'
  83. INSTAGRAM_CLIENT_ID = '77dc10b9e3624e908ce437c0a82da92e'
  84. INSTAGRAM_CLIENT_SECRET = '8bcf3139857149aaba7acaa61288427f'
  85. PAYPAL_CLIENT_ID = 'AcOIP0f8NTl3iv5Etw2nakNrgPmjE65v84a2NQD5mm8-z-dTyhMSNHZuxHbHUaTAxLQIE0u-A2DFEY8M'
  86. PAYPAL_CLIENT_SECRET = 'EOKz-tkbFfRZavSD8T70f961v3NHRVAXXJu-5MU97YqSVKBsUH4NOoy_xQ2Am3EU3lN2m5RQiVb3eI-3'
  87. GOOGLEMAP_API_KEY = 'AIzaSyA7tttML91EGZ32S_FOOoxu-mbxN9Ojds8'