Skip to main content

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

  1. After installing add “djangonepal” and ‘django_extensions’ to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
    
        'djangonepal',
        'django_extensions',
    
        ...
    ]
  2. Run python manage.py makemigrations djangonepal

  3. Run python manage.py migrate to create the models.

  4. Add djangonepal.context_processors.data to your ‘context_processors’ (optional)

    ‘context_processors’: [

    …

    ‘djangonepal.context_processors.data’

    … ]

  5. Run python manage.py runscript load_data wait till the import finishes. This import will let you use the data the way you want.

  6. 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}}

  7. 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

  1. More information about each administrative divisions to be added.

  2. Resource Map, Census data to be added.

  3. Terrain,flora,fauna data to be added.

  1. Rest API to be created and made public.

Metadata

Release files for djangonepal 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangonepal 0.0.9
File Size Uploaded
djangonepal-0.0.9.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangonepal 0.0.9
File Interpreter ABI Platform
djangonepal-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / djangonepal-0.0.9.tar.gz

Download URL djangonepal-0.0.9.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b4feaa67385291160ede5dd225663a70b627b86249977d95ef8e76cbdd0e9f69
BLAKE2b-256 checksum
How to use checksums
dbaa7dadea5fea69cc3d84355848493476ce6da482aed7ddd8dd033184a7d4a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / djangonepal-0.0.9-py3-none-any.whl

Download URL djangonepal-0.0.9-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22ac048e771d222e6acdfc5761b186bbb33165df3b055e524aa554edca64e649
BLAKE2b-256 checksum
How to use checksums
cf3ffb5f859a5136dd22914d35070df82ec4b247132c23f3fd350d1849e406be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page