Projet

Général

Profil

Télécharger (2,25 ko) Statistiques
| Branche: | Tag: | Révision:

root / corbo / settings.py @ e0d858ba

1
"""
2
Django settings for corbo project.
3

    
4
For more information on this file, see
5
https://docs.djangoproject.com/en/1.7/topics/settings/
6

    
7
For the full list of settings and their values, see
8
https://docs.djangoproject.com/en/1.7/ref/settings/
9
"""
10

    
11
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12
import os
13
BASE_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!
20
SECRET_KEY = '$%7m&rq1-&$c77a1s^_$=xgiqez-%_x3^&5=*^-4(6si2zu59z'
21

    
22
# SECURITY WARNING: don't run with debug turned on in production!
23
DEBUG = True
24

    
25
TEMPLATE_DEBUG = True
26

    
27
ALLOWED_HOSTS = []
28

    
29

    
30
# Application definition
31

    
32
INSTALLED_APPS = (
33
    'corbo',
34
    'ckeditor',
35
    'django.contrib.auth',
36
    'django.contrib.admin',
37
    'django.contrib.contenttypes',
38
    'django.contrib.sessions',
39
    'django.contrib.messages',
40
    'django.contrib.staticfiles',
41
)
42

    
43
MIDDLEWARE_CLASSES = (
44
    'django.contrib.sessions.middleware.SessionMiddleware',
45
    'django.middleware.common.CommonMiddleware',
46
    'django.middleware.csrf.CsrfViewMiddleware',
47
    'django.contrib.auth.middleware.AuthenticationMiddleware',
48
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
49
    'django.contrib.messages.middleware.MessageMiddleware',
50
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
51
)
52

    
53
ROOT_URLCONF = 'corbo.urls'
54

    
55
WSGI_APPLICATION = 'corbo.wsgi.application'
56

    
57

    
58
# Database
59
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
60

    
61
DATABASES = {
62
    'default': {
63
        'ENGINE': 'django.db.backends.sqlite3',
64
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
65
    }
66
}
67

    
68
# Internationalization
69
# https://docs.djangoproject.com/en/1.7/topics/i18n/
70

    
71
LANGUAGE_CODE = 'en-us'
72

    
73
TIME_ZONE = 'UTC'
74

    
75
USE_I18N = True
76

    
77
USE_L10N = True
78

    
79
USE_TZ = True
80

    
81

    
82
# Static files (CSS, JavaScript, Images)
83
# https://docs.djangoproject.com/en/1.7/howto/static-files/
84

    
85
STATIC_URL = '/static/'
86

    
87
CKEDITOR_UPLOAD_PATH = 'ckeditor/uploads'
88

    
89
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
90
MEDIA_URL = '/media/'
91

    
92
ANNOUNCES_PER_PAGE = 10
93

    
94
RSS_TITLE = 'Announces'
95
RSS_DESCRIPTION = ''
96
RSS_LINK = ''
97
RSS_LINK_TEMPLATE = '/#announce{0}'
(4-4/9)