settings.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. )
  31. MIDDLEWARE_CLASSES = (
  32. 'django.contrib.sessions.middleware.SessionMiddleware',
  33. 'django.middleware.common.CommonMiddleware',
  34. 'django.middleware.csrf.CsrfViewMiddleware',
  35. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  36. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  37. 'django.contrib.messages.middleware.MessageMiddleware',
  38. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  39. #'django_openid_consumer.SessionConsumer',
  40. )
  41. ROOT_URLCONF = 'hackathon_starter.urls'
  42. WSGI_APPLICATION = 'hackathon_starter.wsgi.application'
  43. # Database
  44. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  45. DATABASES = {
  46. 'default': {
  47. 'ENGINE': 'django.db.backends.sqlite3',
  48. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  49. }
  50. }
  51. # Internationalization
  52. # https://docs.djangoproject.com/en/1.7/topics/i18n/
  53. LANGUAGE_CODE = 'en-us'
  54. TIME_ZONE = 'UTC'
  55. USE_I18N = True
  56. USE_L10N = True
  57. USE_TZ = True
  58. # Static files (CSS, JavaScript, Images)
  59. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  60. STATIC_URL = '/static/'
  61. TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]