A Django app that provides choices for adminstrative bodies of Nepal.
Project description
Django Nepal
Djangonepal is a Django app that provides information about the administrative bodies of Nepal. Currently it has the names of seven provinces of Nepal, name of the districts inside each of the provinces and name of all the municipalities ( including Metropolitan, Sub-Metropolitan and rural Municipalities aka Gaun Palika) inside each districts. Hope this saves your time while working on your web project based project for Nepal.
Quick start
Add “djangonepal” and ‘django_extensions’ to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'djangonepal', 'django_extensions', ... ]
Run python manage.py makemigrations djangonepal
Run python manage.py migrate to create the models.
Add djangonepal.context_processors.data to your ‘context_processors’ (optional)
- ‘context_processors’: [
…
‘djangonepal.context_processors.data’
… ]
Run python manage.py runscript load_data wait till the import finishes. This import will let you use the data the way you want.
If you followed step 4 you should be able to render it in your template using
{% for i in province %} <p> {{i.name}} </p> {% endfor %}
For district {{i.district}} For VDC/Municipality/Metropolitan/Sub-Metropolitan {{i.municipality}}
You could also register the model on your admin.py file with
from djangonepal.models import * admin.site.register(Province) admin.site.register(District) admin.site.register(Municipality)
Want to Contribute?
Open to any feedbacks/pull requests. Feel free to Ping Me Anytime, Even if you are not a developer. Any valid resource or data in any format is appreciated. Everyone will be credited for their respective contributions.
NOTE:
Please check the source and published date of data before submitting any kind of information regarding the package.
Future Releases
More information about each administrative divisions to be added.
Resource Map, Census data to be added.
Terrain,flora,fauna data to be added.
Rest API to be created and made public.
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
Built Distribution
Hashes for djangonepal-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6717276ed1b79e7700412439920616d7443d3fafa1d0d45ce271466ccfbf1bde |
|
MD5 | 8f894c22215af30f0486439cee6eddd9 |
|
BLAKE2b-256 | 4638cc2276c5aacc7b08a7d49b8611cb091b70184db15fdd8ecfb79551ca7052 |