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.

111 lines
2.8 KiB

10 years ago
  1. """
  2. Django settings for hc project.
  3. Generated by 'django-admin startproject' using Django 1.8.2.
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/1.8/topics/settings/
  6. For the full list of settings and their values, see
  7. https://docs.djangoproject.com/en/1.8/ref/settings/
  8. """
  9. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  10. import os
  11. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  12. # Quick-start development settings - unsuitable for production
  13. # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
  14. # SECURITY WARNING: keep the secret key used in production secret!
  15. SECRET_KEY = '9)gjy!j50uvbcy#y9ifoh@9pf%3m5^-9h0jv@+3^ln$%az8e(7'
  16. # SECURITY WARNING: don't run with debug turned on in production!
  17. 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. 'bootstrap3',
  28. 'hc.accounts',
  29. 'hc.checks'
  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.middleware.security.SecurityMiddleware',
  40. )
  41. ROOT_URLCONF = 'hc.urls'
  42. TEMPLATES = [
  43. {
  44. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  45. 'DIRS': [os.path.join(BASE_DIR, 'templates')],
  46. 'APP_DIRS': True,
  47. 'OPTIONS': {
  48. 'context_processors': [
  49. 'django.template.context_processors.debug',
  50. 'django.template.context_processors.request',
  51. 'django.contrib.auth.context_processors.auth',
  52. 'django.contrib.messages.context_processors.messages',
  53. ],
  54. },
  55. },
  56. ]
  57. WSGI_APPLICATION = 'hc.wsgi.application'
  58. # Database
  59. # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
  60. DATABASES = {
  61. 'default': {
  62. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  63. 'NAME': 'hc',
  64. 'USER': 'hc',
  65. 'PASSWORD': '',
  66. 'HOST': '192.168.1.111',
  67. 'PORT': 5432,
  68. 'TEST': {'CHARSET': 'UTF8'}
  69. }
  70. }
  71. # Internationalization
  72. # https://docs.djangoproject.com/en/1.8/topics/i18n/
  73. LANGUAGE_CODE = 'en-us'
  74. TIME_ZONE = 'UTC'
  75. USE_I18N = True
  76. USE_L10N = True
  77. USE_TZ = True
  78. SITE_ROOT = "http://localhost:8000"
  79. STATIC_URL = '/static/'
  80. STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]