{"id":22916730,"url":"https://github.com/chanmo/django-city","last_synced_at":"2025-04-01T12:44:30.547Z","repository":{"id":57419291,"uuid":"67995178","full_name":"ChanMo/django-city","owner":"ChanMo","description":"基于django的城市模块","archived":false,"fork":false,"pushed_at":"2016-09-22T07:26:56.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T17:49:11.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChanMo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-12T09:25:47.000Z","updated_at":"2018-05-10T07:45:22.000Z","dependencies_parsed_at":"2022-09-08T05:00:06.378Z","dependency_job_id":null,"html_url":"https://github.com/ChanMo/django-city","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdjango-city","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdjango-city/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdjango-city/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdjango-city/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChanMo","download_url":"https://codeload.github.com/ChanMo/django-city/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246642177,"owners_count":20810556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T06:14:27.824Z","updated_at":"2025-04-01T12:44:30.530Z","avatar_url":"https://github.com/ChanMo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django-city\n=======================\n\n一个基于django的城市模块\n\n快速开始:\n---------\n\n安装django-city:\n\n.. code-block::\n\n    pip install django-city\n\n修改setttings.py:\n\n.. code-block::\n\n    INSTALLED_APPS = (\n        ...\n        'city',\n        ...\n    )\n\n在admin中使用:\n\n.. code-block::\n    \n    from city.admin import CityAdminMixin\n\n    class DemoAdmin(CityAdminMixin, admin.ModelAdmin):\n        pass\n\n在views中使用:\n\n.. code-block::\n\n    from city.views import CityViewMixin\n\n    class DemoView(CityViewMixin):\n        pass\n\n\n\n版本更改:\n---------\n\n- v0.0.2 添加`CityViewMixin`\n- v0.0.1 第一版\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmo%2Fdjango-city","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanmo%2Fdjango-city","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmo%2Fdjango-city/lists"}