This file contains hidden or 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
| # settings.py | |
| EMAIL_BACKEND = 'backends.SMTPEmailBackend' | |
| # backends.py | |
| """Custom SMTP email backend class""" | |
| import smtplib | |
| from django.core.mail.utils import DNS_NAME | |
| from django.core.mail.backends.smtp import EmailBackend | |
| class SMTPEmailBackend(EmailBackend): |
This file contains hidden or 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
| # The full public facing url | |
| #root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
| root_url = http://localhost:80/grafana/ |
This file contains hidden or 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
| from django.db import models | |
| from wagtail.wagtailsnippets.models import register_snippet | |
| from wagtail.wagtailcore.models import Page | |
| from modelcluster.fields import ParentalKey | |
| from wagtail.wagtailadmin.edit_handlers import InlinePanel | |
| @register_snippet | |
| class Category(models.Model): |
This file contains hidden or 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
| from django import template | |
| from django.template import Context | |
| from django.template.base import parse_bits | |
| from wagtail.wagtailimages.templatetags.wagtailimages_tags import ImageNode | |
| from wagtail.wagtailimages.models import Filter, SourceImageIOError, InvalidFilterSpecError | |
| from britishswimming.utils.models import SocialMediaSettings | |
| register = template.Library() |