<commit_before>optional-django
===============

[![Build Status](https://travis-ci.org/markfinger/optional-django.svg?branch=master)](https://travis-ci.org/markfinger/optional-django)

Utils for apps to provide optional support for django applications.

In short, this is a grab bag of utils to shim around environments which may or may not
include a configured version of django.


Installation
------------

```
pip install optional-django
```


Settings
--------

```python
from optional_django import conf

class Conf(conf.Conf):
    django_namespace = 'SOME_APP'

    FOO = 'BAR'
    BAR = [1,2,3]
	WOZ = 4

settings = Conf()

print(settings.WOZ)  # 4, or the value of django.conf.settings.SOME_APP['WOZ']<commit_msg>Documentation improvements.<commit_after>optional-django
===============

[![Build Status](https://travis-ci.org/markfinger/optional-django.svg?branch=master)](https://travis-ci.org/markfinger/optional-django)

Utils for providing optional support for django.

In short, this is a grab bag of utils to shim around environments which may or may not
include a configured version of django.


Installation
------------

```
pip install optional-django
```


Settings
--------

```python
from optional_django import conf

class Conf(conf.Conf):
    django_namespace = 'SOME_APP'

    FOO = 'BAR'
    BAR = [1,2,3]
	WOZ = 4

settings = Conf()

print(settings.WOZ)  # 4, or the value of django.conf.settings.SOME_APP['WOZ']
{'fraction_non_alphanumeric': 0.15496872828353023, 'fraction_numerical': 0.006949270326615705, 'mean_word_length': 3.8979591836734695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1610583', 'n_tokens_mistral': 464, 'n_tokens_neox': 439, 'n_words': 129}