Settings¶
You can use the following settings to configure juntagrico
Contact Information¶
ORGANISATION_NAME¶
The short name of your organisation
Type: String
default value
"Juntagrico"
ORGANISATION_NAME_CONFIG¶
Additional information to enrich the organisation name with the type of the organisation and its corresponding article
Type: Dictionary
default value
{"type" : "", "gender" : ""}
ORGANISATION_LONG_NAME¶
The long version of your organisation, if you have one otherwise also use the short one
Type: String
default value
"Juntagrico the best thing in the world"
ORGANISATION_ADDRESS¶
The address of your organisation
Type: dict with the keys - name - street - number - zip - city - extra
default value
{"name":"Juntagrico", "street" : "Fakestreet", "number" : "123", "zip" : "12456", "city" : "Springfield", "extra" : ""}
ORGANISATION_PHONE¶
The phone number for your organisation
Type: string
default value
""
INFO_EMAIL¶
The general email of your organisation
Type: String
default value
"info@juntagrico.juntagrico"
SERVER_URL¶
The base url of your organisation (not the one where you run juntagrico)
Type: String
default value
"www.juntagrico.juntagrico"
Accounting¶
ORGANISATION_BANK_CONNECTION¶
the bank connection information of your organisation
Type: dict with the keys - PC (postkonto) - BIC - IBAN - NAME
default value
{"PC" : "01-123-5", "IBAN" : "CH 00 12345 67890 12345 67890 10", "BIC" : "BIC12345XX", "NAME" : "Juntagrico Bank",}
CURRENCY¶
The default currency used within the system
Type: String
default value
"CHF"
External Documents¶
BUSINESS_REGULATIONS¶
URL to your business regulations document
Type: String
default value
""
BYLAWS¶
URL to your bylaws document
Type: String
default value
""
FAQ_DOC¶
URL to your FAQ document
Type: String
default value
""
EXTRA_SUB_INFO¶
If you use extra subscriptions this describes the URL to the document describing them
Type: String
default value
""
ACTIVITY_AREA_INFO¶
URL to your document describing your activity areas
Type: String
default value
""
Business Year¶
BUSINESS_YEAR_START¶
Defining the start of the business year
Type: dict with the keys - day - month
default value
{"day":1, "month":1}
BUSINESS_YEAR_CANCELATION_MONTH¶
The date until you can cancel your subscriptions
Type: Integer
default value
12
Membership¶
ENABLE_REGISTRATION¶
Decides if new member can register
Type: Boolean
default value
True
BASE_FEE¶
Yearly fee for members without a subscription
Type: String
default value
""
MEMBERSHIP_END_MONTH¶
The month at which end the members can leave the organisation
Type: Integer
default value
6
MEMBERSHIP_END_NOTICE_PERIOD¶
The notice period in months a member needs to account for when cancelling the membership
Type: Integer
default value
0
Jobs¶
ASSIGNMENT_UNIT¶
The mode how assignments are counted: Valid values are EMTITY and HOURS. ENTITY the assignments are counted by occurrence, Hours the value of the assignments are counted by the actual time the user spent on a job.
Type: String
default value
"ENTITY"
PROMOTED_JOB_TYPES¶
Types of jobs which should apear on start page
Type: List of Strings
default value
[]
PROMOTED_JOBS_AMOUNT¶
Amount of jobs which should be promoted on the start page
Type: Integer
default value
2
Depot¶
DEPOT_LIST_GENERATION_DAYS¶
Days on which the delivery list can be generated
Type: List of Integers representing days of the week, where Monday is 0 and Sunday is 6.
default value
[0,1,2,3,4,5,6]
DEFAULT_DEPOTLIST_GENERATORS¶
Generators used to generate the depot list. Generators need the method signature
generator_name(*args, **options)
Type: List of Strings which define the different generators to be invoked
default value
['juntagrico.util.depot_list.default_depot_list_generation']
Appearance¶
VOCABULARY¶
Vocabulary dictionary for organisation specific words. _pl indicates the plural of a word. the member key describes the custom name you give your members. the member_type key describes what you call your member in accordance to your oganisation form.
Type: Dictionary
default value
{ 'member': 'Mitglied', 'member_pl' : 'Mitglieder', 'assignment' : 'Arbeitseinsatz', 'assignment_pl' : 'Arbeitseinsätze', 'share' : 'Anteilschein', 'share_pl' : 'Anteilscheine', 'subscription' : 'Abo', 'subscription_pl' : 'Abos', 'co_member' : 'Mitabonnent', 'co_member_pl' : 'Mitabonnenten', 'price' : 'Betriebsbeitrag', 'member_type' : 'Mitglied', 'member_type_pl' : 'Mitglieder', 'depot' : 'Depot', 'depot_pl' : 'Depots', 'package': 'Tasche', }
SUB_OVERVIEW_FORMAT¶
Template and delimiter for formatting the subscription overview.
default value
{'delimiter': '|', 'format': '{product}:{size}:{type}={amount}' }
STYLES¶
Define styles to be included on all pages. If the template key is set, the specified template will be loaded in the header of the page. In the static key a list of css files can be defined to be included. If both keys are defined the template is included before the static css files.
default value
{ 'template': '', 'static': [] }
SCRIPTS¶
Define scripts to be included on all pages. If the template key is set, the specified template will be loaded in the scripts part of the page. In the static key a list of javascript files can be defined to be included. If both keys are defined the template is included before the static javascript files.
default value
{ 'template': '', 'static': [] }
FAVICON¶
If you want to use a custom favicon this specifies the path for your favicon
Type: String
default value
"/static/juntagrico/img/favicon.ico"
IMAGES¶
Defining the different images for core and job assignments etc
default value
{'status_100': '/static/juntagrico/img/status_100.png', 'status_75': '/static/juntagrico/img/status_75.png', 'status_50': '/static/juntagrico/img/status_50.png', 'status_25': '/static/juntagrico/img/status_25.png', 'status_0': '/static/juntagrico/img/status_0.png', 'single_full': '/static/juntagrico/img/single_full.png', 'single_empty': '/static/juntagrico/img/single_empty.png', 'single_core': '/static/juntagrico/img/single_core.png', 'core': '/static/juntagrico/img/core.png'}
BOOTSTRAP¶
If you want to use a customized version of bootstrap this specifies the corresponding path for it
Type: String
default value
"/static/juntagrico/external/bootstrap-3.3.1/css/bootstrap.min.css"
Email¶
EMAILS¶
Defining the different email templates
default value
{ 'welcome': 'mails/welcome_mail.txt', 'co_welcome': 'mails/welcome_added_mail.txt', 'co_added': 'mails/added_mail.txt', 'password': 'mails/password_reset_mail.txt', 'j_reminder': 'mails/job_reminder_mail.txt', 'j_canceled': 'mails/job_canceled_mail.txt', 'confirm': 'mails/confirm.txt', 'j_changed': 'mails/job_time_changed_mail.txt', 'j_signup': 'mails/job_signup_mail.txt', 'd_changed': 'mails/depot_changed_mail.txt', 's_created': 'mails/share_created_mail.txt', 'n_sub': 'mails/new_subscription.txt', 's_canceled': 'mails/subscription_canceled_mail.txt', 'm_canceled': 'mails/membership_canceled_mail.txt', }
MAIL_TEMPLATE¶
Path to your custom html email template if you want to overwrite the look and feel of the html emails
Type: String
default value
"mails/email.html"
DEFAULT_MAILER¶
The code to send mails. for more info see the code specified in the default value The setting
'juntagrico.util.mailer.batch.Mailer'
uses a built in batch mailer, that sends the emails to the “bcc” recipients in separate emails. SeeBATCH_MAILER
to configure it.default value
'juntagrico.util.mailer.default.Mailer'
BATCH_MAILER¶
Configuration for the batch mailer. These are only effective, if DEFAULT_MAILER is set to
'juntagrico.util.mailer.batch.Mailer'
.batch_size
is the number of emails, that is sent in one batch. When set to 1, all emails are sent using “to” instead of “bcc”.wait_time
is the interval in which the batches are sent.default value
{ 'batch_size': 39, 'wait_time': 65 }
FROM_FILTER¶
Allows overriding the “from” field of outgoing emails. This can be used to prevent sending emails with a sender of different domain than the SMTP server, which triggers most spam filters. The setting consists of a regular expression and a default replacement. If the regular expression does NOT match the default replacement is used as “from”, and the origonal “from” is set as “reply to”
default value
{ 'filter_expression': '.*', 'replacement_from': '' }
WHITELIST_EMAILS¶
List of regular expression to determine which email addresses should receive emails while DEBUG mode is enabled
default value
[]
MAILER_RICHTEXT_OPTIONS¶
Configuration overrides of the tinyMCE editor of the mailer view. See default config in
static/juntagrico/js/initMailer.js
.default value:
{}
GDPR¶
GDPR_INFO¶
URL to your gdpr document
Type: String
default value
""
COOKIE_CONSENT¶
The text, confirm text, link text and url of the cookie consent
default value
{'text': _('{} verwendet folgende Cookies: session, csfr, cookieconsent.').format(Site.objects.get_current().name), 'confirm_text': _('einverstanden'), 'link_text': _('Hier findest du mehr zum Thema'), 'url': '/my/cookies' }