settings: ne pas définir SITE_ID
[auf_framonde.git] / project / settings / 99-custom.py
1 # -*- encoding: utf-8 -*-
2
3 SESSION_COOKIE_NAME = 'sessionid_framonde_auf_org'
4
5 # Rapports d'erreurs
6 SERVER_EMAIL = 'ne-pas-repondre@auf.org'
7 EMAIL_SUBJECT_PREFIX = '[Framonde]'
8 EMAIL_HOST = 'localhost'
9 EMAIL_PORT = 587
10 EMAIL_USE_TLS = True
11
12 ROOT_URLCONF = 'project.urls'
13
14 INSTALLED_APPS += (
15 'project.framonde',
16 # 'project.contact',
17 'tinymce',
18 'south',
19 )
20
21 SOUTH_TESTS_MIGRATE = False
22
23 LOGGING = {
24 'version': 1,
25 'disable_existing_loggers': True,
26 'root': {
27 'level': 'WARNING',
28 'handlers': ['sentry'],
29 },
30 'formatters': {
31 'verbose': {
32 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
33 },
34 },
35 'handlers': {
36 'sentry': {
37 'level': 'WARNING',
38 'class': 'raven.contrib.django.handlers.SentryHandler',
39 },
40 'console': {
41 'level': 'DEBUG',
42 'class': 'logging.StreamHandler',
43 'formatter': 'verbose'
44 }
45 },
46 'loggers': {
47 'django.db.backends': {
48 'level': 'ERROR',
49 'handlers': ['console'],
50 'propagate': False,
51 },
52 'raven': {
53 'level': 'DEBUG',
54 'handlers': ['console'],
55 'propagate': False,
56 },
57 'sentry.errors': {
58 'level': 'DEBUG',
59 'handlers': ['console'],
60 'propagate': False,
61 },
62 },
63 }
64
65 TINYMCE_DEFAULT_CONFIG = {
66 'theme': "advanced",
67 'theme_advanced_buttons1' : "formatselect,|,bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,backcolor,|removeformat,visualaid,code,",
68 'theme_advanced_buttons2' : "",
69 'theme_advanced_buttons3' : "",
70 'theme_advanced_statusbar_location' : "bottom",
71 'theme_advanced_toolbar_align' : "left",
72 'width' : "800",
73 'height' : "200",
74 'theme_advanced_resizing' : "true",
75 'custom_undo_redo_levels': 10,
76 'theme_advanced_toolbar_location' : 'top',
77 }