Skip to main content

This is a basic django app that creates a table for EAV (Entity-Attribute-Value) configuration settings.

Project description

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_ConfigConfig application to INSTALLED_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 2013-present (2019) 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/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-basic-config-1.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_basic_config-1.0.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file django-basic-config-1.0.2.tar.gz.

File metadata

  • Download URL: django-basic-config-1.0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for django-basic-config-1.0.2.tar.gz
Algorithm Hash digest
SHA256 351913045d78ef8af58d9687151b4dcdc1c873e361c84e4ed8f44929370e5f54
MD5 b6307326df0270241f7e8145e508e319
BLAKE2b-256 7be832f8b9125511d28798b62ec8498a1e3652304878cc06106804c6a19eb030

See more details on using hashes here.

File details

Details for the file django_basic_config-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: django_basic_config-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for django_basic_config-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e80adb0feb81d58f4238f20050f9eecfd913bf02d48391e1a501bdffe7b5cdd1
MD5 6ada7c4129c14cf2992d5dc0f9d019c1
BLAKE2b-256 c12130afc199a7e6f2dfd1fe6f36f359271a12a23f29347cc243af671575cf1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page