Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-configfield

How to install django-configfield

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-configfield
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.0-beta
0.2.2Never BuiltWhy not?
0.1.0-beta Available View build log
0.1.0-alpha Available View build log
Windows (64-bit)
0.1.0-beta
0.2.2Never BuiltWhy not?
0.1.0-beta Available View build log
0.1.0-alpha Available View build log
Mac OS X (10.5+)
0.2.2 Available View build log
0.1.0-beta Available View build log
0.1.0-alpha Available View build log
Linux (32-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.2.0 Available View build log
0.1.0-beta Available View build log
0.1.0-alpha Available View build log
Linux (64-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.2.0 Available View build log
0.1.0-beta Available View build log
0.1.0-alpha Available View build log
 
Imports
Lastest release
version 0.2.2 on Jun 1st, 2013

django-configfield

A new model and form field flexible for schema changes. Internally is stored as JSON field in database.

Installation

In your settings.py
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',

    #.....................#

    'configfield',
)
In your models.py
class MyModel(models.Model):

    .....

    config = ConfigField(verbose_name=_('Config'), null=True, blank=True)
In your forms.py
class MyForm(forms.ModelForm):

    class Meta:
        model = MyModel

    def __init__(self, *args, **kwargs):
        super(MyForm, self).__init__(*args, **kwargs)
        if self.instance.pk:
            config_dict = self.instance.config
        else:
            config_dict = MY_DEFAULT_CONFIG_DICT
        self.fields['config'].set_config_dict(config_dict)

Development

You can get the last bleeding edge version of django-configfield by doing a clone of its hg repository:

hg clone https://bitbucket.org/msaelices/django-configfield
0.2.2
  • Frozen django-jsonfield version because the latest version is broken with configfield.
0.2.1
  • Fix a error, when a param of the dict was None
0.2.0
  • Add the set_config_dict function
  • Remove the smart_if dependence
  • Remove the JSONField class and use the JSONField of the django-jsonfield egg
  • Write a readme with an install
  • Add the django-jsonfield in the requeriements
0.1.0-beta
  • Improved type checking. Needed when the config field is placed in a subclass.
  • Fix name of base template.
0.1.0-alpha
  • Initial version

Subscribe to package updates

Last updated Jun 1st, 2013

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.