| 43 | | settings.py: |
| 44 | | |
| 45 | | {{{ |
| 46 | | """ |
| 47 | | Django settings for p_kreker project. |
| 48 | | |
| 49 | | For more information on this file, see |
| 50 | | https://docs.djangoproject.com/en/1.7/topics/settings/ |
| 51 | | |
| 52 | | For the full list of settings and their values, see |
| 53 | | https://docs.djangoproject.com/en/1.7/ref/settings/ |
| 54 | | """ |
| 55 | | |
| 56 | | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
| 57 | | import os |
| 58 | | BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
| 59 | | |
| 60 | | |
| 61 | | # Quick-start development settings - unsuitable for production |
| 62 | | # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
| 63 | | |
| 64 | | # SECURITY WARNING: keep the secret key used in production secret! |
| 65 | | SECRET_KEY = '@l)bvja@q45ud2d813g*i+n2=1#kbf#nzqm6()c)dv116pqq^p' |
| 66 | | |
| 67 | | # SECURITY WARNING: don't run with debug turned on in production! |
| 68 | | DEBUG = True |
| 69 | | |
| 70 | | TEMPLATE_DEBUG = True |
| 71 | | |
| 72 | | ALLOWED_HOSTS = [] |
| 73 | | |
| 74 | | |
| 75 | | # Application definition |
| 76 | | |
| 77 | | INSTALLED_APPS = ( |
| 78 | | 'django.contrib.admin', |
| 79 | | 'django.contrib.auth', |
| 80 | | 'django.contrib.contenttypes', |
| 81 | | 'django.contrib.sessions', |
| 82 | | 'django.contrib.messages', |
| 83 | | 'django.contrib.staticfiles', |
| 84 | | ) |
| 85 | | |
| 86 | | MIDDLEWARE_CLASSES = ( |
| 87 | | 'django.contrib.sessions.middleware.SessionMiddleware', |
| 88 | | 'django.middleware.common.CommonMiddleware', |
| 89 | | 'django.middleware.csrf.CsrfViewMiddleware', |
| 90 | | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
| 91 | | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', |
| 92 | | 'django.contrib.messages.middleware.MessageMiddleware', |
| 93 | | 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
| 94 | | ) |
| 95 | | |
| 96 | | ROOT_URLCONF = 'p_kreker.urls' |
| 97 | | |
| 98 | | WSGI_APPLICATION = 'p_kreker.wsgi.application' |
| 99 | | |
| 100 | | |
| 101 | | # Database |
| 102 | | # https://docs.djangoproject.com/en/1.7/ref/settings/#databases |
| 103 | | |
| 104 | | DATABASES = { |
| 105 | | 'default': { |
| 106 | | 'NAME': 'p_kreker', |
| 107 | | 'ENGINE': 'mysql.connector.django', |
| 108 | | 'USER': 'paul', |
| 109 | | 'PASSWORD': 'm2aJup2fHYDdArGT', |
| 110 | | 'OPTIONS': { |
| 111 | | 'autocommit': True, |
| 112 | | }, |
| 113 | | } |
| 114 | | } |
| 115 | | |
| 116 | | # Internationalization |
| 117 | | # https://docs.djangoproject.com/en/1.7/topics/i18n/ |
| 118 | | |
| 119 | | LANGUAGE_CODE = 'de-de' |
| 120 | | |
| 121 | | TIME_ZONE = 'Europe/Berlin' |
| 122 | | |
| 123 | | USE_I18N = True |
| 124 | | |
| 125 | | USE_L10N = True |
| 126 | | |
| 127 | | USE_TZ = True |
| 128 | | |
| 129 | | |
| 130 | | # Static files (CSS, JavaScript, Images) |
| 131 | | # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
| 132 | | |
| 133 | | STATIC_URL = '/static/' |
| 134 | | }}} |
| 135 | | |