Mercurial > sat_legacy_website
annotate settings/specific.py @ 160:ff48d544bfdd default tip
gallery: replaced <video> tag by <img> for videos thumbnails
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Sep 2018 16:41:30 +0200 |
parents | d893828f58f0 |
children |
rev | line source |
---|---|
149
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 import os |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 from .settings import PROJECT_DIR |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
8 # Here are defined the settings that are specific to the SàT website |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
9 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
10 # External URL pointing the external media files |
159
d893828f58f0
settings: replaced http: by https: urls
Goffi <goffi@goffi.org>
parents:
149
diff
changeset
|
11 MEDIA_EXTERNAL_URL = 'https://ftp.goffi.org/media' |
149
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
12 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
13 # External URL pointing the projects archives directory |
159
d893828f58f0
settings: replaced http: by https: urls
Goffi <goffi@goffi.org>
parents:
149
diff
changeset
|
14 PROJECTS_EXTERNAL_URL = 'https://ftp.goffi.org' |
149
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
15 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
16 # Internal path to the the projects archives directory |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
17 PROJECTS_INTERNAL_PATH = '/srv/ftp' |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
18 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
19 # List of couples with the project directory name and the project name (set to None if it's the same) |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
20 PROJECTS_NAMES = [('sat', None), ('sat_media', None), ('urwid-satext', 'urwid_satext'), ('sat_pubsub', None), ('libervia', None)] |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
21 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
22 # Extension used to name the project archives |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
23 ARCHIVE_SUFFIX = '.tar.bz2' |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
24 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
25 # URL to Libervia online demo |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
26 LIBERVIA_DEMO_URL = 'https://www.libervia.org' |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
27 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
28 # Actual and target number of members |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
29 ASSO_MEMBERS_ACTUAL = 3400 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
30 ASSO_MEMBERS_TARGET = 6000 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
31 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
32 # Actual and target amount to finance the association (in euros) |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
33 ASSO_FINANCE_ACTUAL = 40000 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
34 ASSO_FINANCE_TARGET = 60000 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
35 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
36 # Subscription amounts as defined in the Rules of Procedure |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
37 ASSO_SUBSCR_AMOUNTS = (0, 10, 20, 30, 50, 80, 100) |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
38 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
39 # Path the CSV file where all the subscriptions are written |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
40 ASSO_SUBSCR_CSV = os.path.join(PROJECT_DIR, "sat_website_subscriptions.csv") |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
41 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
42 # Bank account information |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
43 ASSO_IBAN = u"FR76 1027 8060 4300 0207 3220 109" |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
44 ASSO_BIC = u"CMCIFR2A" |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
45 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
46 # URL to the Statutes and Rules of the association |
159
d893828f58f0
settings: replaced http: by https: urls
Goffi <goffi@goffi.org>
parents:
149
diff
changeset
|
47 ASSO_URL_STATUTES = 'https://repos.goffi.org/sat_docs/raw-file/tip/association/statuts.pdf' |
d893828f58f0
settings: replaced http: by https: urls
Goffi <goffi@goffi.org>
parents:
149
diff
changeset
|
48 ASSO_URL_RULES = 'https://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf' |