Skip to main content

dj

This is just a namespace package for Django-related projects. Feel free to use it.

Does Django even support namespace packages?

It currently doesn’t but you can patch it like so:

import django.core.management

def django_core_management__find_management_module(app_name):
    """
    Determines the path to the management module for the given app_name,
    without actually importing the application or the management module.

    Raises ImportError if the management module cannot be found for any reason.

    Supports namespace packages.
    """
    import sys
    import os.path

    parts = app_name.split('.')
    parts.append('management')

    management_module = __import__(app_name + '.management', fromlist=parts)
    path = management_module.__file__

    if path.endswith(('__init__.py', '__init__.pyc')):
        path = os.path.split(path)[0]

    return path

# PATCH: a more generic find_management_module that supports namespace
# packages.
# COMPATIBILITY: Django 1.1.0 - 1.3.0
django.core.management.find_management_module = \
    django_core_management__find_management_module

Authors

Glued together by Łukasz Langa.

Metadata

Release files for dj 0.1

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

Source distribution (sdist)

Source distribution for dj 0.1
File Size Uploaded Provenance Actions
dj-0.1.tar.gz 3.1 kB Without provenance Details for dj-0.1.tar.gz

Release files / dj-0.1.tar.gz

Download URL dj-0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
515398094e8a1dfd309cbebfa760cf8608e58cb4dff10579fdad85b10b729385
BLAKE2b-256 checksum
How to use checksums
a40213f392e3dc08a07417f7f9e9cb2bb3d736089042f1a55e0b33d4edd433ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dj 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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