Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-dburlresolvers

A URL resolver which store the URL patterns in database, which means a webmaster can define some URLs.

Installing

Install package from pypi:

$ easy_install django-dburlresolvers

Put dbresolver into your installed applications:

INSTALLED_APPS = (
    ...
    'dbresolver',
)

Change the project urls.py file like this:

from dbresolver import get_dbresolver_patterns

urlpatterns = patterns('',
    ... # your URLs
)

urlpatterns += get_dbresolver_patterns()

Usage

Register some views of your project to get available in dbresolver. You may register it manually or automatically (by autodiscovering):

  • Manually: Using the dbresolver API directly:

    >>> from dbresolver import register_view
    >>> from fooapp.views import foo_listing
    >>> register_view(foo_listing, 'Foo listing')
  • Automatically: Put this code in your project (we recommended in the project urls.py):

    from dbresolver import autodiscover_views
    autodiscover_views()

    You need to define an especial views_to_register method, like ilustrate this example:

    def foo_listing(request):
        foo_list = FooModel.objects.all()
        return render_to_response('fooapp/foo_listing.html',
                                {'foo_list': foo_list},
                                 context_instance=RequestContext(request))
    
    def views_to_register():
        """ returns views to be registered with dbresolver """
        return (
            (foo_listing, _('Foo listing')),
        )

Now you only have to enter on admin site to create URL patterns attached to views. You can use both Django default regular expressions and simpler surlex expressions.

0.1.0-beta

Fixed a model form error when used outside admin.

0.1.0-alpha

Initial version

Metadata

Release files for django-dburlresolvers 0.1.0-beta

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

Source distribution (sdist)

Source distribution for django-dburlresolvers 0.1.0-beta
File Size Uploaded Provenance Actions
django-dburlresolvers-0.1.0-beta.tar.gz 10.9 kB Without provenance Details for django-dburlresolvers-0.1.0-beta.tar.gz

Release files / django-dburlresolvers-0.1.0-beta.tar.gz

Download URL django-dburlresolvers-0.1.0-beta.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
767c082571518a40441684300fe9087c54e17325e0b4252cc90189ad6c2e9d57
BLAKE2b-256 checksum
How to use checksums
ce7a5cabd18fc6d8ffe6696d5a08e0a9d1f095d259b6b62e366b8569f0b44b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-dburlresolvers 0.1.0-beta

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.

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