Skip to main content

Algerian Wilaya & Commune data for Django projects

Project description

dz_locations

DZ Locations is a Django package that provides Algerian wilayas (states) and communes (municipalities) ready to use in your Django projects.

This package helps you quickly populate your database with all Algerian locations and access them via Django Admin or API.


Installation

Install the package via pip:

pip install dz-locations

Features

  • Preloaded data for all Algerian wilayas and communes.
  • Management commands to load data into your database.
  • Easy integration with Django Admin.
  • API-ready serializers for quick development.

Usage

  1. Add dz_locations to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        ...
        'dz_locations',
    ]
    
  2. Run the management command to load data:

    python manage.py loaddz
    
  3. Access the data via Django Admin or use the serializers provided for API development.


Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes and push them to your fork.
  4. Submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

dz_locations-0.1.2.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dz_locations-0.1.2-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file dz_locations-0.1.2.tar.gz.

File metadata

  • Download URL: dz_locations-0.1.2.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for dz_locations-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c84687c8dc07f45be8d401f277d9cda9a32fb4d0738f24311100aec1c2034ed3
MD5 5beb3eae3f26181ed077b8827b4cb6bc
BLAKE2b-256 5a2d6f48102311927e4e3b3c626bd317a0daf70f1ec2eaa1c6727c63f8cf2273

See more details on using hashes here.

File details

Details for the file dz_locations-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dz_locations-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for dz_locations-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1056be4b1a78c53b1abec084970453191c33425876dbfcae9ea2de3588638c
MD5 c3b2b673ac427df21543d47ffe092b5e
BLAKE2b-256 aeeba08c4d9b18607f04c6049300fc713e56045e36d572214c2a6b8d57f9b08c

See more details on using hashes here.

Supported by

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