Hi, I've a problem adding views to my admin site using Django 1.1
beta.
I've defined inside my admin.py:

class SeasonAdmin(admin.ModelAdmin):

    def get_urls(self):
        urls = super(SeasonAdmin, self).get_urls()
        my_urls = patterns('',
            (r'check_calendar/$', 'myapp.admin_views.check_calendar',)
        )
        return my_urls + urls

(admin_views.py contains my customs views for admin)

In my project I defined urls.py:

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

but, when i call : http://localhost:8000/admin/myapp/check_calendar i
get a "page not found" that tell me "admin/myapp/check_calendar,
didn't match any of these"

where I'm wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to