Ticket #24262: settings.py

File settings.py, 2.2 KB (added by P.Kreker, 10 years ago)
Line 
1"""
2Django settings for p_kreker project.
3
4For more information on this file, see
5https://docs.djangoproject.com/en/1.7/topics/settings/
6
7For the full list of settings and their values, see
8https://docs.djangoproject.com/en/1.7/ref/settings/
9"""
10
11# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12import os
13BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14
15
16# Quick-start development settings - unsuitable for production
17# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
18
19# SECURITY WARNING: keep the secret key used in production secret!
20SECRET_KEY = '@l)bvja@q45ud2d813g*i+n2=1#kbf#nzqm6()c)dv116pqq^p'
21
22# SECURITY WARNING: don't run with debug turned on in production!
23DEBUG = True
24
25TEMPLATE_DEBUG = True
26
27ALLOWED_HOSTS = []
28
29
30# Application definition
31
32INSTALLED_APPS = (
33 'django.contrib.admin',
34 'django.contrib.auth',
35 'django.contrib.contenttypes',
36 'django.contrib.sessions',
37 'django.contrib.messages',
38 'django.contrib.staticfiles',
39)
40
41MIDDLEWARE_CLASSES = (
42 'django.contrib.sessions.middleware.SessionMiddleware',
43 'django.middleware.common.CommonMiddleware',
44 'django.middleware.csrf.CsrfViewMiddleware',
45 'django.contrib.auth.middleware.AuthenticationMiddleware',
46 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
47 'django.contrib.messages.middleware.MessageMiddleware',
48 'django.middleware.clickjacking.XFrameOptionsMiddleware',
49)
50
51ROOT_URLCONF = 'p_kreker.urls'
52
53WSGI_APPLICATION = 'p_kreker.wsgi.application'
54
55
56# Database
57# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
58
59DATABASES = {
60 'default': {
61 'NAME': 'p_kreker',
62 'ENGINE': 'mysql.connector.django',
63 'USER': 'paul',
64 'PASSWORD': 'm2aJup2fHYDdArGT',
65 'OPTIONS': {
66 'autocommit': True,
67 },
68 }
69}
70
71# Internationalization
72# https://docs.djangoproject.com/en/1.7/topics/i18n/
73
74LANGUAGE_CODE = 'de-de'
75
76TIME_ZONE = 'Europe/Berlin'
77
78USE_I18N = True
79
80USE_L10N = True
81
82USE_TZ = True
83
84
85# Static files (CSS, JavaScript, Images)
86# https://docs.djangoproject.com/en/1.7/howto/static-files/
87
88STATIC_URL = '/static/'
Back to Top