2009-10-24 03:22:31 +08:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
from django.contrib import admin
|
2009-10-24 08:23:47 +08:00
|
|
|
from django.contrib.comments.admin import CommentsAdmin
|
|
|
|
from django.contrib.comments.models import Comment
|
2009-10-24 03:22:31 +08:00
|
|
|
|
2009-10-24 08:23:47 +08:00
|
|
|
# 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)
|
2009-10-24 03:22:31 +08:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2009-10-24 08:23:47 +08:00
|
|
|
(r'^admin/', include(admin_site.urls)),
|
2009-10-24 03:22:31 +08:00
|
|
|
)
|