Skip to main content

rewrite CityAdminMixin

Project description

一个基于django的城市模块

快速开始:

安装django-city:

pip install django-city

修改setttings.py:

INSTALLED_APPS = (
    ...
    'city',
    ...
)

在admin中使用:

from city.admin import CityAdminMixin

class DemoAdmin(CityAdminMixin, admin.ModelAdmin):
    pass

在views中使用:

from city.views import CityViewMixin

class DemoView(CityViewMixin):
    pass

版本更改:

  • v0.0.2 添加`CityViewMixin`

  • v0.0.1 第一版

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-city-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

django_city-0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file django-city-0.0.3.tar.gz.

File metadata

  • Download URL: django-city-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-city-0.0.3.tar.gz
Algorithm Hash digest
SHA256 79f5b8b3813fea577229258cdbc8a9e944e6eb8bc0cf65f00ceb8a7d65901d00
MD5 7cafa9a3ce7906682982b380a8837f83
BLAKE2b-256 71f8f31e53e4ed0d7beb07cd0cd84f3b720faf81bf71a8f7eb95fe243aa05900

See more details on using hashes here.

File details

Details for the file django_city-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_city-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b31bb84dc29cd918bebd8c95660ef3e196911b82d08551b9c27859d60b47091
MD5 4140d1570f7b413f5110036313f2df2c
BLAKE2b-256 1a284d79e454d88cf3f5e4f127d246894dfa8d3a5b139cb00b90e3eac036fce9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page