thirdparty/google_appengine/lib/django/tests/urls.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 07 Dec 2008 17:01:44 +0000
changeset 704 8647e6b441fc
parent 109 620f9b141567
permissions -rwxr-xr-x
Factor out sidebar entry construction This makes it possible to reuse this logic in other modules as well, preventing code duplication. While at it, move additional_sidebar merging before the other entries (additional entries should go first, since the other entries are mostly dev-only etc). Patch by: Sverre Rabbelier

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # test_client modeltest urls
    (r'^test_client/', include('modeltests.test_client.urls')),

    # Always provide the auth system login and logout views
    (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),

    # test urlconf for {% url %} template tag
    (r'^url_tag/', include('regressiontests.templates.urls')),
)