Source

django-storages / storages / util.py

The default branch has multiple heads

Full commit
1
2
3
4
5
6
7
8
9
from django.conf import settings


def setting(name, default=None):
    """
    Helper function to get a Django setting by name or (optionally) return
    a default (or else ``None``).
    """
    return getattr(settings, name, default)