## Overview
This app do a reusable model and admin of CRUD cities and address of
Brazil
Image 1
Image 2
It has a two models abstracts in file `mixins.py` that will be used in your custom model if necessary
So you can build a custom City and Address Model extend of others Mixins and register it
in admin.
```
from django_br_address.mixins import CityMixin, AddressMixin
# models.py
class CustomCity(CityMixin, Mixin2, Mixin3)
pass
# admin.py
from django_br_address.admin import CityAdmin
from customapp.model import CustomCity
admin.site.unregister(CityAdmin)
admin.site.register(CustomCity)
```
## How to install
`pip install django-br-addresses`
## How to use
Put the app in settings installed apps.
```
INSTALLED APPS = [
'django-br-address'
]
```
### To use in django<1.7
```
SOUTH_MIGRATION_MODULES = {
'django-br-addresses.br_addresses': 'django-br-addresses.br_addresses.south_migrations',
}
```
## Running tests
Install the requirements in tests directory
`pip install -r requirements.txt`
Go to a tests directory and run the command below
```
python manage.py runstests.py
```
## Todo
1 - Do a geospatial localization of address with latitude and longitude
Metadata
Release files for django-br-addresses 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-br-addresses-0.1.1.tar.gz | 11.1 kB | Without provenance | Details |
Release files / django-br-addresses-0.1.1.tar.gz
| Download URL | django-br-addresses-0.1.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f651362f3b0dd55847a62136846a5a48c7099816253662bf101716c67402c1a
|
|
BLAKE2b-256 checksum How to use checksums |
9d611768eed23a70370c15eac47afe8acadd96ef6e297b92f622e53e0dadb414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-br-addresses 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.