https://github.com/chanmo/django-city
基于django的城市模块
https://github.com/chanmo/django-city
Last synced: about 1 year ago
JSON representation
基于django的城市模块
- Host: GitHub
- URL: https://github.com/chanmo/django-city
- Owner: ChanMo
- License: other
- Created: 2016-09-12T09:25:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T07:26:56.000Z (almost 10 years ago)
- Last Synced: 2025-03-05T17:49:11.927Z (over 1 year ago)
- Language: Python
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Django-city
=======================
一个基于django的城市模块
快速开始:
---------
安装django-city:
.. code-block::
pip install django-city
修改setttings.py:
.. code-block::
INSTALLED_APPS = (
...
'city',
...
)
在admin中使用:
.. code-block::
from city.admin import CityAdminMixin
class DemoAdmin(CityAdminMixin, admin.ModelAdmin):
pass
在views中使用:
.. code-block::
from city.views import CityViewMixin
class DemoView(CityViewMixin):
pass
版本更改:
---------
- v0.0.2 添加`CityViewMixin`
- v0.0.1 第一版