Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Path model

Project description


$ [sudo] pip install django-path



  • Path model for any purposes. fields: path, category (optional)
  • Category model. fields: name, parent (optional), description (optional)



model __doc__
django_path.models.Path Path model. fields: path
django_path.models.Category Category model. fields: name, parent, description


import django_standalone_setup
from django_path.models import Category, Path

for f in files:
    cat_name = os.path.basename(os.path.dirname(f))
    category, _ = Category.objects.get_or_create(name=cat_name)
    Path.objects.get_or_create(path=f, category=category)


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-path-2019.4.13.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page