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
# app/sitemaps.py | |
''' | |
Example of sitemaps module for a list of products. | |
For more info about sitemaps check out django docs | |
https://docs.djangoproject.com/en/stable/ref/contrib/sitemaps/ | |
''' | |
from django.contrib.sitemaps import Sitemap | |
from .models import Product |
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 module contains interchangeable clients for sending notifications. | |
Use cases for those helpers: | |
- send notifications using a common interface; | |
- change the client in a transparent way (based on settings); | |
''' | |
from __future__ import unicode_literals | |
import logging |
OlderNewer