django_config
This is a basic django app that creates a table for EAV (Entity-Attribute-Value) configuration settings where each row has the following fields:
- application
- property_name
- property_value
It provides methods for retrieving configuration properties that allow for a default value to be passed in. It is entirely in the admin and ORM layer, does not include an external-facing web app. This is purposely not all that complicated or sophisticated. If you want something more robust, there are other, better options. This is quick and dirty.
Installation
-
This application, simple though it may be, has been updated to support django 1.7 and later, and with it the new built-in data migrations.
-
Install django_config application:
-
install django_config - Either:
-
install using pip:
pip install django-basic-config -
Clone code into your django site/project.
git clone https://github.com/jonathanmorgan/django_config
-
-
add the
django_config.apps.Django_ConfigConfigapplication toINSTALLED_APPS:INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'django_config.apps.Django_ConfigConfig', ) -
install database tables
python manage.py migrate django_config
-
License
Copyright 2020 Jonathan Morgan
This file is part of https://github.com/jonathanmorgan/django_config.
django_config is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
django_config is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with https://github.com/jonathanmorgan/django_config. If not, see http://www.gnu.org/licenses/.
Metadata
Release files for django-basic-config 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-basic-config-1.1.0.tar.gz | 14.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_basic_config-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / django-basic-config-1.1.0.tar.gz
| Download URL | django-basic-config-1.1.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c9bcd2792ca1646fc726c1abb6dcfad27a064fe2bf9611212b154cef8a84321
|
|
BLAKE2b-256 checksum How to use checksums |
da01992d9ad4597d1a4d96f2984d074d30c4d0ad263a4198fc7e4078bd138fa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / django_basic_config-1.1.0-py3-none-any.whl
| Download URL | django_basic_config-1.1.0-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
664cc871135162944c302e390cb1214ef68da04d5b2f22259e5fe43fd63433d3
|
|
BLAKE2b-256 checksum How to use checksums |
c1cf7f53b4e2e6e71a49c4b98979f72f473fc8506cf3dad0d41c60629e06d68d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for django-basic-config 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.