This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-urlalternatives - Alternative Django views under same URL pattern

Django URL alternatives provides a way for dispatching one URL pattern to the first alternative view (callback function) in a list that returns success.

version:0.1 (or corresponding Mercurial revision hash)
author:GW < or>
keywords:url alternatives, dispatcher, views, django, urlconf, same pattern


In case you want to assing in an URLconf the same URL pattern to more than one view (or callback function), such that the next ones are fallbacks in case of errors (ie. HTTP response codes >= 400). This is often the case when combining different apps with dynamic URLs (such as CMSs) and you want to respond with the one that has that content.


As you can see from the following example the URL alternatives dispatcher is simply used as part of the urlpatterns variable in and supports passing of positional and keyword arguments, eg.:

urlpatterns += pattern(”,
(r’^’, ‘urlalternatives.views.dispatcher’, {‘callbacks’:[
app1.views.failing404, ‘app2.views.working’, (redirect_to, [], {‘url’:’/’}),



Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-urlalternatives-0.1.0.tar.gz (15.0 kB) Copy SHA256 Checksum SHA256 Source Jul 7, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting