Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ARN
coin
Commits
36c5dced
Commit
36c5dced
authored
Aug 22, 2018
by
ljf
Committed by
jocelyn
Mar 17, 2019
Browse files
[enh] Document settings
parent
b9566cff
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
36c5dced
...
...
@@ -384,6 +384,7 @@ MEMBERSHIP_FEE_REMINDER_DATES = [
-
`SITE_TITLE`
: the base of site title (displayed in browser window/tab title)
-
`SITE_HEADER`
: the site header (displayed in all pages as page header)
-
`SITE_LOGO_URL`
: URL to website logo (by default, this is an ascii-duck)
-
`NOTIFICATION_EMAILS`
: Emails on which to send notifications.
Accounting logs
---------------
...
...
coin/members/models.py
View file @
36c5dced
...
...
@@ -69,13 +69,13 @@ def send_registration_notification(sender, user, request=None, **kwargs):
"""
relative_link
=
reverse
(
'admin:members_member_change'
,
args
=
[
user
.
id
])
edit_link
=
request
.
build_absolute_uri
(
relative_link
)
utils
.
send_templated_email
(
to
=
settings
.
NOTIFICATION_EMAILS
,
subject_template
=
'members/emails/new_member_subject.txt'
,
body_template
=
'members/emails/new_member_email.html'
,
context
=
{
'member'
:
self
,
'edit_link'
:
edit_link
},
**
kwargs
)
if
settings
.
NOTIFICATION_EMAILS
is
not
None
:
utils
.
send_templated_email
(
to
=
settings
.
NOTIFICATION_EMAILS
,
subject_template
=
'members/emails/new_member_subject.txt'
,
body_template
=
'members/emails/new_member_email.html'
,
context
=
{
'member'
:
self
,
'edit_link'
:
edit_link
},
**
kwargs
)
class
Member
(
CoinLdapSyncMixin
,
AbstractUser
):
...
...
coin/settings_base.py
View file @
36c5dced
...
...
@@ -16,6 +16,9 @@ ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
# Email on which to send emails
NOTIFICATION_EMAILS
=
None
MANAGERS
=
ADMINS
DATABASES
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment