![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
django-simple-settings
Advanced tools
Supported types: bool, float, int, str.
.. image:: https://badge.fury.io/py/django-simple-settings.png :target: http://badge.fury.io/py/django-simple-settings
.. image:: https://api.travis-ci.org/alikus/django-simple-settings.png :target: https://travis-ci.org/alikus/django-simple-settings
.. image:: https://coveralls.io/repos/alikus/django-simple-settings/badge.png?branch=master :target: https://coveralls.io/r/alikus/django-simple-settings?branch=master
.. code-block:: bash
$ pip install django-simple-settings
2. Add "simple_settings" to your INSTALLED_APPS setting:
.. code-block:: python
INSTALLED_APPS = (
...
'simple_settings',
)
3. Add context processor if you would like:
.. code-block:: python
TEMPLATE_CONTEXT_PROCESSORS = (
'...',
'simple_settings.context_processors.simple_settings',
)
4. Create models:
.. code-block:: bash
$ python manage.py migrate || python manage.py syncdb
Get settings:
.. code-block:: python
from simple_settings import settings
print settings.get('is_feature_available')
print settings.get('is_feature_available', default=False)
print settings['is_feature_available']
Get all settings as dict:
.. code-block:: python
print settings.all()
Get settings in template if you include context processor:
.. code-block:: html+django
{{ simple_settings.is_feature_available }}
Set settings:
.. code-block:: python
settings.set('is_feature_available', True)
settings.set('pi', 3.14159265359)
settings.set('answer', 42)
settings.set('metallica', 'Yeah!')
Delete settings:
.. code-block:: python
settings.delete('is_feature_available')
Default application settings can be overriden in settings.py:
.. code-block:: python
SIMPLE_SETTINGS_CACHE_TIMEOUT = 60 * 60 * 24 # default cache timeout is one day
SIMPLE_SETTINGS_CACHE_ALIAS = 'default' # default cache backend
FAQs
A very simple settings configurable in Django Admin Panel.
We found that django-simple-settings demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.