BCB Bank static website
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

109 Zeilen
2.8 KiB

  1. """
  2. Django settings for fundzin project.
  3. Generated by 'django-admin startproject' using Django 1.8.
  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 = 'ip%^uxe%85kf$f4pgkf!5+056(l6q5!yuje1fgyw03y*9o079t'
  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. 'home'
  28. )
  29. MIDDLEWARE_CLASSES = (
  30. 'django.contrib.sessions.middleware.SessionMiddleware',
  31. 'django.middleware.common.CommonMiddleware',
  32. 'django.middleware.csrf.CsrfViewMiddleware',
  33. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  34. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  35. 'django.contrib.messages.middleware.MessageMiddleware',
  36. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  37. 'django.middleware.security.SecurityMiddleware',
  38. )
  39. ROOT_URLCONF = 'fundzin.urls'
  40. TEMPLATES = [
  41. {
  42. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  43. 'DIRS': [
  44. os.path.join(BASE_DIR,'templates'),
  45. ],
  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 = 'fundzin.wsgi.application'
  58. # Database
  59. # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
  60. DATABASES = {
  61. 'default': {
  62. 'ENGINE': 'django.db.backends.sqlite3',
  63. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  64. }
  65. }
  66. # Internationalization
  67. # https://docs.djangoproject.com/en/1.8/topics/i18n/
  68. LANGUAGE_CODE = 'en-us'
  69. TIME_ZONE = 'UTC'
  70. USE_I18N = True
  71. USE_L10N = True
  72. USE_TZ = True
  73. # Static files (CSS, JavaScript, Images)
  74. # https://docs.djangoproject.com/en/1.8/howto/static-files/
  75. STATICFILES_DIRS = (
  76. os.path.join(BASE_DIR,'static'),
  77. )
  78. STATIC_URL = '/static/'
  79. STATIC_ROOT = os.path.join(BASE_DIR, 'all_staticfiles')