mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-24 04:03:44 +00:00
conf.py pep8
This commit is contained in:
parent
39d8340b92
commit
62d643e698
1 changed files with 10 additions and 7 deletions
|
|
@ -1,20 +1,23 @@
|
|||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = 'Copyright (c) 2014 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('get_setting',)
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from fobi import defaults
|
||||
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('get_setting',)
|
||||
|
||||
|
||||
def get_setting(setting, override=None):
|
||||
"""
|
||||
"""Get setting.
|
||||
|
||||
Get a setting from `fobi` conf module, falling back to the default.
|
||||
|
||||
If override is not None, it will be used instead of the setting.
|
||||
|
||||
:param setting: String with setting name
|
||||
:param override: Value to use when no setting is available. Defaults to None.
|
||||
:param override: Value to use when no setting is available. Defaults to
|
||||
None.
|
||||
:return: Setting value.
|
||||
"""
|
||||
if override is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue