Mercurial > sat_legacy_website
annotate sat_website/local_settings.py @ 55:a1e457ac6871
split adhesion.html between adhesion.html and association.html
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 05 May 2015 15:02:50 +0200 |
parents | 1a0f24401866 |
children | bfa8009f0769 |
rev | line source |
---|---|
24
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 """ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 Django LOCAL settings for sat_website project, typically to be imported from |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 the main settings.py file (see http://stackoverflow.com/a/4909964). |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 For more information on this file, see |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 https://docs.djangoproject.com/en/1.7/topics/settings/ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
8 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
9 For the full list of settings and their values, see |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
10 https://docs.djangoproject.com/en/1.7/ref/settings/ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
11 """ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
12 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
13 # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
14 import os |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
15 BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
16 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
17 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
18 # Quick-start development settings - unsuitable for production |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
19 # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
20 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
21 # SECURITY WARNING: keep the secret key used in production secret! |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
22 SECRET_KEY = '{{ secret_key }}' |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
23 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
24 # SECURITY WARNING: don't run with debug turned on in production! |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
25 DEBUG = True |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
26 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
27 TEMPLATE_DEBUG = DEBUG |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
28 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
29 |
41
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
30 # Email settings |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
31 |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
32 # print email to stdout instead of actually sending it |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
33 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
34 |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
35 DEFAULT_FROM_EMAIL = u'contact@salut-a-toi.org' |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
36 |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
37 ADMINS = ((u'Salut à Toi', 'contact@salut-a-toi.org'),) |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
38 |
1a0f24401866
send adhesion form results via email to the admins and the new member
souliane <souliane@mailoo.org>
parents:
40
diff
changeset
|
39 |
24
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
40 # Application definition |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
41 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
42 INSTALLED_APPS = ( |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
43 'django.contrib.admin', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
44 'django.contrib.auth', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
45 'django.contrib.contenttypes', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
46 'django.contrib.sessions', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
47 'django.contrib.messages', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
48 'django.contrib.staticfiles', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
49 'markdown_deux', # https://github.com/trentm/django-markdown-deux |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
50 'sat_website', # needed to load the apps in templatetags |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
51 ) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
52 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
53 MIDDLEWARE_CLASSES = ( |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
54 'django.contrib.sessions.middleware.SessionMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
55 'django.middleware.locale.LocaleMiddleware', # after SessionMiddleWare AND before CommonMiddleWare |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
56 'django.middleware.common.CommonMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
57 'django.middleware.csrf.CsrfViewMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
58 'django.contrib.auth.middleware.AuthenticationMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
59 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
60 'django.contrib.messages.middleware.MessageMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
61 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
62 ) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
63 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
64 ROOT_URLCONF = 'sat_website.urls' |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
65 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
66 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
67 # Database |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
68 # https://docs.djangoproject.com/en/1.7/ref/settings/#databases |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
69 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
70 DATABASES = { |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
71 'default': { |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
72 'ENGINE': 'django.db.backends.sqlite3', |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
73 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
74 } |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
75 } |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
76 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
77 # Internationalization |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
78 # https://docs.djangoproject.com/en/1.7/topics/i18n/ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
79 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
80 LANGUAGE_CODE = 'en-us' |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
81 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
82 TIME_ZONE = 'Europe/Paris' |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
83 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
84 USE_I18N = True |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
85 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
86 USE_L10N = True |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
87 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
88 USE_TZ = True |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
89 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
90 LOCALE_PATHS = ("locale",) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
91 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
92 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
93 # Static files (CSS, JavaScript, Images) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
94 # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
95 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
96 STATIC_URL = '/static/' |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
97 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
98 STATICFILES_DIRS = ( |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
99 os.path.join(BASE_DIR, 'static'), |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
100 ) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
101 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
102 # Templates |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
103 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
104 TEMPLATE_DIRS = ( |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
105 os.path.join(BASE_DIR, 'templates'), |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
106 ) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
107 |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
108 # Options for SàT website (see README) |
c6a3ca0429dd
add local_settings.py and instructions to run the website locally
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
109 |
39 | 110 # External URL pointing the projects archives directory |
111 PROJECTS_EXTERNAL_PATH = 'ftp://ftp.goffi.org' | |
112 | |
113 # Internal path to the the projects archives directory | |
114 PROJECTS_INTERNAL_PATH = '/var/www/projects' | |
115 | |
116 # List of couples with the project directory name and the project name (set to None if it's the same) | |
117 PROJECTS_NAMES = [('sat', None), ('sat_media', None), ('urwid-satext', 'urwid_satext'), ('sat_pubsub', None), ('libervia', None)] | |
118 | |
119 # Extension used to name the project archives | |
120 ARCHIVE_SUFFIX = '.tar.bz2' | |
121 | |
122 # URL to Libervia online demo | |
31
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
123 LIBERVIA_DEMO_URL = 'https://www.libervia.org' |
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
124 |
39 | 125 # Actual and target number of members |
31
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
126 ASSO_MEMBERS_ACTUAL = 3400 |
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
127 ASSO_MEMBERS_TARGET = 6000 |
39 | 128 |
129 # Actual and target amount to finance the association (in euros) | |
130 ASSO_FINANCE_ACTUAL = 40000 | |
31
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
131 ASSO_FINANCE_TARGET = 60000 |
39 | 132 |
133 # Subscription amounts as defined in the Rules of Procedure | |
31
31d196cf3b34
add settings ASSO_MEMBERS_*, ASSO_FINANCE_* and LIBERVIA_DEMO_URL
souliane <souliane@mailoo.org>
parents:
24
diff
changeset
|
134 ASSO_SUBSCR_AMOUNTS = (0, 10, 20, 30, 50, 80, 100) |
40
dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
souliane <souliane@mailoo.org>
parents:
39
diff
changeset
|
135 |
dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
souliane <souliane@mailoo.org>
parents:
39
diff
changeset
|
136 # URL to the Statutes and Rules of the association |
dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
souliane <souliane@mailoo.org>
parents:
39
diff
changeset
|
137 ASSO_URL_STATUTES = 'http://repos.goffi.org/sat_docs/raw-file/tip/association/statuts.pdf' |
dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
souliane <souliane@mailoo.org>
parents:
39
diff
changeset
|
138 ASSO_URL_RULES = 'http://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf' |