{ "info": { "author": "Manuel Saelices", "author_email": "msaelices@yaco.es", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents::\n\ndjango-configfield\n==================\n\nA new model and form field flexible for schema changes. Internally is\nstored as JSON field in database.\n\nInstallation\n============\n\nIn your settings.py\n-------------------\n\n::\n\n INSTALLED_APPS = (\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.sites',\n 'django.contrib.admin',\n\n #.....................#\n\n 'configfield',\n )\n\n\nIn your models.py\n-----------------\n\n::\n\n class MyModel(models.Model):\n\n .....\n\n config = ConfigField(verbose_name=_('Config'), null=True, blank=True)\n\n\n\nIn your forms.py\n----------------\n\n::\n\n class MyForm(forms.ModelForm):\n\n class Meta:\n model = MyModel\n\n def __init__(self, *args, **kwargs):\n super(MyForm, self).__init__(*args, **kwargs)\n if self.instance.pk:\n config_dict = self.instance.config\n else:\n config_dict = MY_DEFAULT_CONFIG_DICT\n self.fields['config'].set_config_dict(config_dict)\n\n\nDevelopment\n===========\n\nYou can get the last bleeding edge version of django-configfield by doing a clone\nof its hg repository::\n\n hg clone https://bitbucket.org/msaelices/django-configfield\n\n\n0.2.2\n-----\n\n* Frozen django-jsonfield version because the latest version is broken with configfield.\n\n0.2.1\n-----\n\n* Fix a error, when a param of the dict was None\n\n0.2.0\n-----\n\n* Add the set_config_dict function\n* Remove the smart_if dependence\n* Remove the JSONField class and use the JSONField of the django-jsonfield egg\n* Write a readme with an install\n* Add the django-jsonfield in the requeriements\n\n0.1.0-beta\n----------\n\n* Improved type checking. Needed when the config field is placed in a subclass.\n\n* Fix name of base template.\n\n0.1.0-alpha\n-----------\n\n* Initial version", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/msaelices/django-configfield/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-configfield", "package_url": "https://pypi.org/project/django-configfield/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-configfield/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/msaelices/django-configfield/" }, "release_url": "https://pypi.org/project/django-configfield/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "A new model and form field flexible for schema changes, stored as JSON in database.", "version": "0.2.2" }, "last_serial": 789352, "releases": { "0.1.0-alpha": [ { "comment_text": "", "digests": { "md5": "15250ba7700e05bb8c9f53f81ff9fb1f", "sha256": "45a111e3972d79727304a1b98d2f3baf39dce20ef2290bc7c85b14e7f6078067" }, "downloads": -1, "filename": "django-configfield-0.1.0-alpha.tar.gz", "has_sig": false, "md5_digest": "15250ba7700e05bb8c9f53f81ff9fb1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12331, "upload_time": "2011-03-09T12:33:29", "url": "https://files.pythonhosted.org/packages/f9/49/02d1bc2efc85cb5e3931156b43076c8e4af6a80279903c8a649f7b9d3a2f/django-configfield-0.1.0-alpha.tar.gz" } ], "0.1.0-beta": [ { "comment_text": "", "digests": { "md5": "2083c14fcfbcbdd9b635232389bcb89a", "sha256": "92fdaa9d506bee7e16dd6ceb0ac718ae4e10cae2ab5113fa635110ac067c44f3" }, "downloads": -1, "filename": "django-configfield-0.1.0-beta.tar.gz", "has_sig": false, "md5_digest": "2083c14fcfbcbdd9b635232389bcb89a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12436, "upload_time": "2011-04-26T18:16:10", "url": "https://files.pythonhosted.org/packages/26/d0/3b729e36e5851bf0c0d0fdc7ba696268eca12b447ca11b823bed73ece7b9/django-configfield-0.1.0-beta.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4e0ab4d2de29e30d51abc08c37e7df92", "sha256": "a7d5fc82f845df2cb2479f27bb4a7bdf799fb2b4406f0b9a97ae18c78015c614" }, "downloads": -1, "filename": "django-configfield-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4e0ab4d2de29e30d51abc08c37e7df92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13511, "upload_time": "2012-09-17T15:37:42", "url": "https://files.pythonhosted.org/packages/6d/51/2055be3a35b51ddc4ff849c3d4910965bcdf8afa74aaf893da58a39c9c8f/django-configfield-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9ff9fd42c2e985ba1087fc6d9748f59e", "sha256": "5178969c5bec8bed08130bdb1109d830e08b12cb93f0c6a5a2ba043ff94c3da2" }, "downloads": -1, "filename": "django-configfield-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9ff9fd42c2e985ba1087fc6d9748f59e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13575, "upload_time": "2012-11-06T15:44:39", "url": "https://files.pythonhosted.org/packages/42/2c/9bb507746e114df1bb21ead249f92c9847e375787abe2f605ae530871a0c/django-configfield-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "08678e58cd8009ab152bc4d20b1fc9ab", "sha256": "b55563ab625a39c02d1e7e4f19fa7ea4d31d856cb52ce14ff4f1cc172201a671" }, "downloads": -1, "filename": "django-configfield-0.2.2.tar.gz", "has_sig": false, "md5_digest": "08678e58cd8009ab152bc4d20b1fc9ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13683, "upload_time": "2013-05-28T09:37:14", "url": "https://files.pythonhosted.org/packages/52/e3/055d9be7e52d76c783f7834d16960153e82da0c3e08cd767bd3f7c6ff6ed/django-configfield-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08678e58cd8009ab152bc4d20b1fc9ab", "sha256": "b55563ab625a39c02d1e7e4f19fa7ea4d31d856cb52ce14ff4f1cc172201a671" }, "downloads": -1, "filename": "django-configfield-0.2.2.tar.gz", "has_sig": false, "md5_digest": "08678e58cd8009ab152bc4d20b1fc9ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13683, "upload_time": "2013-05-28T09:37:14", "url": "https://files.pythonhosted.org/packages/52/e3/055d9be7e52d76c783f7834d16960153e82da0c3e08cd767bd3f7c6ff6ed/django-configfield-0.2.2.tar.gz" } ] }