semvec/pypi-packages huggingface dataset:
django-configurations-autoenv 2020.10.26
django-configurations autoenv
License: Unlicense
Keywords: django django-configurations autoenv

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-configurations-autoenv.svg?maxAge=3600)](https://pypi.org/project/django-configurations-autoenv/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-configurations-autoenv
```

#### How it works
+   environment variable must be prefixed with `DJANGO_`
+   `True` values: `'yes'`, `'y'`, `'true'`, `'1'`
+   `False` values: `'no'`, `'n'`, `'false'`, `'0'`
+   list values: must contain a comma `,`

##### `settings.py`
```python
from configurations import Configuration
from django_configurations_autoenv import AutoenvMixin

class Base(AutoenvMixin,Configuration):
```

```python
from django_configurations_autoenv import AutoenvConfiguration

class Base(AutoenvConfiguration):
```

##### `.env`
```bash
DJANGO_STATIC=/static/
DJANGO_ALLOWED_HOSTS=domain1.com,domain2.com
DJANGO_DEBUG=false
```

#### Links
+   [django-configurations](https://github.com/jazzband/django-configurations)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-configurations-installed-apps 2020.10.26
django-configurations INSTALLED_APPS
License: Unlicense
Keywords: django django-configurations apps

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-configurations-installed-apps.svg?maxAge=3600)](https://pypi.org/project/django-configurations-installed-apps/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-configurations-installed-apps
```

#### Features
key  | default value  | env
-|-|-
`INSTALLED_APPS` | `[]` | `DJANGO_INSTALLED_APPS`
`INSTALLED_APPS_FILE` | `None` | `DJANGO_INSTALLED_APPS_FILE`
`INSTALLED_APPS_FILES` | `[]` | `DJANGO_INSTALLED_APPS_FILES`
`INSTALLED_APPS_DISCOVER` | `True` | `DJANGO_INSTALLED_APPS_DISCOVER`  ('yes', 'y', 'true', '1')

##### `settings.py`
```python
from configurations import Configuration
from django_configurations_installed_apps import InstalledAppsMixin

class Base(InstalledAppsMixin,Configuration):
    INSTALLED_APPS_FILE = 'apps.txt'
    INSTALLED_APPS_DISCOVER = True
```

`apps.txt`
```
django.contrib.admin
django.contrib.auth
django.contrib.contenttypes
django.contrib.sessions
django.contrib.messages
django.contrib.sites
django.contrib.staticfiles

django_gravatar
```

#### Links
+   [django-configurations](https://github.com/jazzband/django-configurations)
+   [django-discover-apps](https://pypi.org/project/django-discover-apps/)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>