A Django app for managing districts in Africa.
Project description
# Districts - Africa
Districts - Africa is a Django app for managing regions, districts, counties, sub-counties, parishes, and their corresponding locations within the African continent.
Detailed documentation is in the "docs" directory.
## Quick start
1. Install the Districts package using `pip` by running the following command:
2. Add "districts" to your `INSTALLED_APPS` setting like this:
INSTALLED_APPS = [
...,
"districts",
]
3. Include the districts URLconf in your project urls.py like this:
path("districts/", include("districts.urls")),
4. Run `python manage.py migrate` to create the districts models.
5. Run `python manage.py load_districts_data` to load the Districts data to your model.
6. Start the development server and visit `http://127.0.0.1:8000/districts/` to view the districts and the URLs.
7. For instance, visit `http://127.0.0.1:8000/districts/region/` to access the regions within a country.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-districts-2023.2.tar.gz
(11.9 kB
view details)
File details
Details for the file django-districts-2023.2.tar.gz.
File metadata
- Download URL: django-districts-2023.2.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e21c43691142d60ea13adf071b61c88ff886fe5982230489904e9689b9fb77e2
|
|
| MD5 |
3b635520070712bf3f5e0f784bcf60c1
|
|
| BLAKE2b-256 |
85cefe94521480891bc020961de45b3487f25408c154383302d362788a4c92aa
|