Surely you need an ^admin/myapp/ rule in your main urls.py? (Your myapp/urls.py cannot attach to the /admin/ path because it is locked into the ^myapp path)
Or you could switch it around and go for /myapp/admin/ (^admin/...) in your myapp/urls.py Both would be perfectly valid. On Wed, Apr 1, 2009 at 12:13 PM, MarcoS <marc.se...@gmail.com> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---