]> gitweb.fperrin.net Git - djsite.git/blob - djsite/settings.py
Use jQuery for some effects
[djsite.git] / djsite / settings.py
1 """
2 Django settings for djsite project.
3
4 Generated by 'django-admin startproject' using Django 1.8.7.
5
6 For more information on this file, see
7 https://docs.djangoproject.com/en/1.8/topics/settings/
8
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/1.8/ref/settings/
11 """
12
13 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
14 import os
15
16 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17
18
19 # Quick-start development settings - unsuitable for production
20 # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
21
22 # SECURITY WARNING: keep the secret key used in production secret!
23 SECRET_KEY = 's665xl1i*aa@k@-!3xnga&qf47^hl*g9z7z7r51e_3*5vqi7=m'
24
25 # SECURITY WARNING: don't run with debug turned on in production!
26 DEBUG = True
27
28 ALLOWED_HOSTS = []
29
30
31 # Application definition
32
33 INSTALLED_APPS = (
34     'django.contrib.admin',
35     'django.contrib.auth',
36     'django.contrib.contenttypes',
37     'django.contrib.sessions',
38     'django.contrib.messages',
39     'django.contrib.staticfiles',
40     'jquery',
41     'tinymce',
42     'quotes',
43 )
44
45 MIDDLEWARE_CLASSES = (
46     'django.contrib.sessions.middleware.SessionMiddleware',
47     'django.middleware.common.CommonMiddleware',
48     'django.middleware.csrf.CsrfViewMiddleware',
49     'django.contrib.auth.middleware.AuthenticationMiddleware',
50     'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
51     'django.contrib.messages.middleware.MessageMiddleware',
52     'django.middleware.clickjacking.XFrameOptionsMiddleware',
53     'django.middleware.security.SecurityMiddleware',
54 )
55
56 ROOT_URLCONF = 'djsite.urls'
57
58 TEMPLATES = [
59     {
60         'BACKEND': 'django.template.backends.django.DjangoTemplates',
61         'DIRS': [],
62         'APP_DIRS': True,
63         'OPTIONS': {
64             'context_processors': [
65                 'django.template.context_processors.debug',
66                 'django.template.context_processors.request',
67                 'django.contrib.auth.context_processors.auth',
68                 'django.contrib.messages.context_processors.messages',
69             ],
70         },
71     },
72 ]
73
74 WSGI_APPLICATION = 'djsite.wsgi.application'
75
76
77 # Database
78 # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
79
80 DATABASES = {
81     'default': {
82         'ENGINE': 'django.db.backends.sqlite3',
83         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
84     }
85 }
86
87
88 # Internationalization
89 # https://docs.djangoproject.com/en/1.8/topics/i18n/
90
91 LANGUAGE_CODE = 'en-us'
92
93 TIME_ZONE = 'Europe/London'
94
95 USE_I18N = True
96
97 USE_L10N = True
98
99 USE_TZ = True
100
101 # Static files (CSS, JavaScript, Images)
102 # https://docs.djangoproject.com/en/1.8/howto/static-files/
103
104 STATIC_URL = '/static/'
105
106 TINYMCE_DEFAULT_CONFIG = {
107 #    'theme_advanced_buttons1' : ['bold', 'underline', 'italic', 'separator', 'insertdate', 'inserttime'],
108     'theme_advanced_buttons1' : 'undo,redo,cut,copy,paste,|,bold,italic,removeformat,|,bullist,numlist,|,link,unlink',
109     'theme_advanced_buttons2' : '',
110     'theme_advanced_buttons3' : "",
111     'plugins': 'table',
112 }