-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add in-app constance settings panel, use only sites in django a…
…dmin for setting site url and name (#435) * feat: add in-app settings panel using django-constance * chore: run black * fix: revert irrelevant changes to settings * fix: add config to email contexts * fix: remove unused import * chore: run black * fix: remove SITE_URL and SITENAME from constance * fix: undo changes to template code * fix: small corrections to template * fix: additional corrections * fix: correct whitespace * fix: make for statement single line * fix: revert irrelevant changes * fix: typo * fix: remove trailing space * feat: move account IBAN to constance * chore: run black formatter * chore: run black formatter * feat: add config accessor * fix: fix imports * fix: format * fix: run formatter * fix: indent * fix: revert bad format * fix: make changes non-breaking * fix: formatting * fix: comment * fix: revert whitespace change * feat: make use of constance for basic things * fix: format * Update banktransaction.html
- Loading branch information
Showing
13 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from django.contrib.sites.models import Site | ||
from drfx import config | ||
|
||
def external_urls(request): | ||
site = Site.objects.get_current() | ||
return { | ||
"ASSOCIATION_RULES_URL": config.ASSOCIATION_RULES_URL, | ||
"MEMBERS_GUIDE_URL": config.MEMBERS_GUIDE_URL, | ||
"SITENAME": site.name, | ||
"SITE_URL": site.domain, | ||
"GITHUB_URL": config.GITHUB_URL, | ||
"SITENAME": config.SITENAME, | ||
"SITE_URL": config.SITE_URL, | ||
"PRIVACY_POLICY_URL": config.PRIVACY_POLICY_URL, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters