summaryrefslogtreecommitdiff
path: root/tests/regressiontests/comment_tests/urls_admin.py
blob: 341285d7ef18179bc139fd9b3d09e47f21b2dac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.conf.urls.defaults import *
from django.contrib import admin
from django.contrib.comments.admin import CommentsAdmin
from django.contrib.comments.models import Comment

# Make a new AdminSite to avoid picking up the deliberately broken admin
# modules in other tests.
admin_site = admin.AdminSite()
admin_site.register(Comment, CommentsAdmin)

urlpatterns = patterns('',
    (r'^admin/', include(admin_site.urls)),
)