{ "info": { "author": "ZNC Sistemas", "author_email": "contato@znc.com.br", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Portuguese (Brazilian)", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "==================================\nMunic\u00edpios Brasileiros para Django\n==================================\n\nAplica\u00e7\u00e3o plug\u00e1vel Django com modelos e widgets para os Munic\u00edpios Brasileiros\n\n- Form com selector Ajax\n- widget reutiliz[avel com Field specificop para modelos com campo municipio.\n\n\nInstalando o django-municipios\n==============================\n\n $ pip install django-municipios\n \nou\n \n $ easy_install django-municipios\n\nou baixar o c\u00f3digo fonte do github e rodar \"setup.py\":\n\n $ git clone git://github.com/znc-sistemas/django-municipios.git\n\n $ cd django-municipios\n\n $ python setup.py install\n\n\nDepend\u00eancias\n============\n\n * jQuery (somente para utilizar widget de sele\u00e7\u00e3o de Munic\u00edpios) \n\nUsando o django-municipios\n==========================\n\nSETTINGS\n~~~~~~~~\nadicione a aplica\u00e7\u00e3o no INSTALLED_APP no seu settings.py\n\n::\n\n INSTALLED_APPS = (\n ...\n\n 'municipios',\n\n ...\n\n )\n \n\nUtilizando dados geogr\u00e1ficos\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \nSe for utilizar GIS adicione a vari\u00e1vel ``MUNICIPIOS_GEO``:\n\n\n:: \n \n MUNICIPIOS_GEO = True \n\n \nNo settings.py, antes de rodar o `syncdb`.\nEste par\u00e2metro habilita os campos que armazenam dados Geogr\u00e1ficos (GeoDjango).\n\nPara carregar dados geogr\u00e1ficos de todos os Munic\u00edpios e UFs baixe o arquivo de fixture \nmunicipios_geo_2013_4674.json.zip_ (110 MB), e carregue a fixture com \n\n::\n \n python manage.py loaddata municipios_geo_900913.json.bz2\n\n.. _municipios_geo_2013_4674.json.zip: https://github.com/znc-sistemas/django-municipios/releases/download/0.8.1/municipios_geo_2013_4674.json.zip\n \n \nUtilizando o widget de Sele\u00e7\u00e3o de Munic\u00edpios\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n\n::\n\n from django import forms\n from municipios.widgets import SelectMunicipioWidget\n\n class FormEndereco(forms.Form):\n municipio = forms.IntegerField(label=u\"UF - Munic\u00edpio\", widget=SelectMunicipioWidget)\n\n\nView\n~~~~\n\n::\n\n def teste(request):\n form = FormEndereco()\n return render_to_response('endereco/teste.html', \n {'form':form,}, context_instance = RequestContext(request))\n\n\nTemplate\n~~~~~~~~ \n1. Inclua o jquery no seu template, ou adicione ao media do seu Form.\n2. form.media - o widget depende de codigo js para funcionar o ajax\n\n::\n\n \n\n {{ form.media }}\n\n {{ form }}\n\n\nTemplate para o widget\n~~~~~~~~~~~~~~~~~~~~~~ \nA partir da vers\u00e3o 0.8.0 \u00e9 poss\u00edvel customizar o template utilizado para apresentar o widget.\nOs templates identificados pela aplica\u00e7\u00e3o s\u00e3o :\n\n1. municipio_field.html\n2. uf_field.html\n\ne o nome da vari\u00e1vel a ser substitu\u00edda \u00e9 ``{{wselect}}``\n\n ex.: de template para BootStrapTwitter\n\n::\n\n
\n
{{wselect}}
\n
\n\nadicione o HTML acima em um template dentro de por exemplo /municipios/templates/municipios/municipio_field.html\n\n\nURLs\n~~~~\nAdicionar as urls da aplica\u00e7\u00e3o no arquivo definido pelo ``ROOT_URLCONF`` do setings.py.\n\n.. admonition:: Nota\n\n A partir da vers\u00e3o 1.4 do Django o prefixo da url pode ser qualquer um, nas vers\u00f5es \n anteriores \u00e9 necess\u00e1rio utilizar o prefixo \"muncipios_app\".\n\n::\n\n (\n\n ...\n\n url(r'^municipios_app/', include('municipios.urls')),\n\n ...\n\n )\n\nArquivos Est\u00e1ticos\n~~~~~~~~~~~~~~~~~~\n\nPara o funcionamento do widget de sele\u00e7\u00e3o de munic\u00edpios em ambiente de produ\u00e7\u00e3o \u00e9 necess\u00e1rio utilizar o comando collectstatic_ do ``Static Files``.\n\n\n.. _collectstatic: https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#collectstatic\n\n\n\n\nHistory\n-------\n\n0.8.1 (2014-01-10)\n++++++++++++++++++\n\n* setup.py refatorado\n* adicionado arquivos de licen\u00e7a, contribuidores, historico e como contribuir\n* modificado urls.py para tentar importar primeiro as funcoes do django > 1.4\n\n\n0.5.0 (2011)\n++++++++++++++++++\n* First release on PyPI.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/znc-sistemas/django-municipios", "keywords": "django-municipios", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-municipios", "package_url": "https://pypi.org/project/django-municipios/", "platform": "", "project_url": "https://pypi.org/project/django-municipios/", "project_urls": { "Homepage": "https://github.com/znc-sistemas/django-municipios" }, "release_url": "https://pypi.org/project/django-municipios/1.2.1/", "requires_dist": null, "requires_python": "", "summary": "Aplica\u00e7\u00e3o plug\u00e1vel Django com modelos e widgets para os Munic\u00edpios Brasileiros", "version": "1.2.1" }, "last_serial": 5946718, "releases": { "0.5": [], "0.6": [ { "comment_text": "", "digests": { "md5": "342dfa1f56cde15bde80b68c4862b7a2", "sha256": "3a1e5bd95bb65cd3840ec2f957e1eea2236f6b7cbfe6612cf078d750c8c11d5c" }, "downloads": -1, "filename": "django-municipios-0.6.tar.gz", "has_sig": false, "md5_digest": "342dfa1f56cde15bde80b68c4862b7a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 169804, "upload_time": "2012-06-15T23:31:03", "url": "https://files.pythonhosted.org/packages/e5/02/37580b2c0b049619b082d70c0ac0a06520b843c25e611c9cceab82fb175b/django-municipios-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "a94db688c1a02da7caa3ee5f95f6b78b", "sha256": "78f9ec046732ab63beb9943e347ee31896633045799f855b9b1a85de15aeda78" }, "downloads": -1, "filename": "django-municipios-0.7.tar.gz", "has_sig": false, "md5_digest": "a94db688c1a02da7caa3ee5f95f6b78b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 169898, "upload_time": "2012-06-15T23:15:49", "url": "https://files.pythonhosted.org/packages/c1/ed/47aa5c93f50ddf127ae90af3fb63a0742c825ae95d4293411269bd98687c/django-municipios-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "21c70b09a0a6afc1cad9617a3b2e21e1", "sha256": "4b2cff6609ccd107904ebec317e6fbcb5f98579889a0381c8148dc0826e5eb70" }, "downloads": -1, "filename": "django-municipios-0.7.1.tar.gz", "has_sig": false, "md5_digest": "21c70b09a0a6afc1cad9617a3b2e21e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 170371, "upload_time": "2012-06-15T23:00:31", "url": "https://files.pythonhosted.org/packages/73/d8/6108ee4483be0d9281e3846ed3acdd12d8bf8477732e71aaf9b5da871653/django-municipios-0.7.1.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "7097c7c1b424f84fa8f02dd9c3073172", "sha256": "e5048a10a4ee1bbd6667aad64fab4d7e62cd31fe2069644a31657bd552356b96" }, "downloads": -1, "filename": "django-municipios-0.8.0.tar.gz", "has_sig": false, "md5_digest": "7097c7c1b424f84fa8f02dd9c3073172", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 172165, "upload_time": "2013-04-19T17:58:23", "url": "https://files.pythonhosted.org/packages/a2/c6/a0b56d5be866bee534185795da00f67a1cf52f872ce326744bc174a33ad0/django-municipios-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "cd58a306502e0f21a0daee5dd255f677", "sha256": "a8cef76e8895e64ca7f3f8eabb6bc191eea3989097c353fa1d4b8d04432d35d1" }, "downloads": -1, "filename": "django-municipios-0.8.1.tar.gz", "has_sig": false, "md5_digest": "cd58a306502e0f21a0daee5dd255f677", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 172818, "upload_time": "2014-01-16T18:02:42", "url": "https://files.pythonhosted.org/packages/0c/eb/9b4b722fb1cde96fff2f9d8ef06be7d804c4d26f05b91250b5644423fc97/django-municipios-0.8.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "b5346fba6cd715d3fb9be633fa1b705f", "sha256": "c437f0f822177c9c0278145c4e6129b5ef194a08cab379028fff721639f08604" }, "downloads": -1, "filename": "django-municipios-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b5346fba6cd715d3fb9be633fa1b705f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171393, "upload_time": "2019-08-29T14:55:37", "url": "https://files.pythonhosted.org/packages/ba/dd/abde46475f44c551701f168353ae3588e14b61dbb97b465fc1e4688bd856/django-municipios-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f3013d37436f2021eef12a67211b9614", "sha256": "8eea1d24c10364cbd42a2cbcf24fdd26a8fa27eeae0ad03affa7a553931aebba" }, "downloads": -1, "filename": "django-municipios-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f3013d37436f2021eef12a67211b9614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171414, "upload_time": "2019-10-07T19:48:16", "url": "https://files.pythonhosted.org/packages/92/e2/b64c21f9cf975ce775b89977dad472c7174d23f2ccd1a5c7a52ffaf08733/django-municipios-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "97dbe2457e8e9d73f3a1ead57cb9751a", "sha256": "0f6fb215a3aa2b132ee906eef488196cef208ecc19ac217b5fbca7ddbdba2ec8" }, "downloads": -1, "filename": "django-municipios-1.2.0.tar.gz", "has_sig": false, "md5_digest": "97dbe2457e8e9d73f3a1ead57cb9751a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 173712, "upload_time": "2019-10-08T17:36:47", "url": "https://files.pythonhosted.org/packages/65/8e/0e96980f85d722e76d2e38423a4d6085d839fc7ec58e82ba666cf63e146f/django-municipios-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "54e8ae9a133c750f8800c7ea3350c688", "sha256": "8103cdb4385ae56cd63956b8aa25207489e072c3d62f4e72a5c81dfcda4cf1de" }, "downloads": -1, "filename": "django-municipios-1.2.1.tar.gz", "has_sig": false, "md5_digest": "54e8ae9a133c750f8800c7ea3350c688", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 173712, "upload_time": "2019-10-08T21:15:21", "url": "https://files.pythonhosted.org/packages/ed/cf/29d0bcdc7d38e98288579f112a7b9b6b609b70ef708f8348ef54760bca0a/django-municipios-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54e8ae9a133c750f8800c7ea3350c688", "sha256": "8103cdb4385ae56cd63956b8aa25207489e072c3d62f4e72a5c81dfcda4cf1de" }, "downloads": -1, "filename": "django-municipios-1.2.1.tar.gz", "has_sig": false, "md5_digest": "54e8ae9a133c750f8800c7ea3350c688", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 173712, "upload_time": "2019-10-08T21:15:21", "url": "https://files.pythonhosted.org/packages/ed/cf/29d0bcdc7d38e98288579f112a7b9b6b609b70ef708f8348ef54760bca0a/django-municipios-1.2.1.tar.gz" } ] }