title: Override AdminSite to append custom urls
body: <p>I overrode default <strong>AdminSite</strong> class as described in manual, though it's too pure with information about this part over there.<br>
  My <strong>gs/admin.py</strong> file:</p>
  
  
  
  <pre><code>from django.contrib.admin import AdminSite
  from django.conf.urls import patterns, url
  from gs.views import *
  
  class AdminSiteGs(AdminSite):
  
      def get_urls(self):
          urls = super(AdminSiteGs, self).get_urls()
  
          urls += patterns('',
               url(r'^my_admin_view/$', self.admin_view(my_admin_view))
          )
  
          return urls
  
  admin_site_gs = AdminSiteGs()
  </code></pre>
  
  <p><em>gs</em> it's my application and project name.</p>
  
  <p><strong>gs/urls.py file</strong>:</p>
  
  
  
  <pre><code>from django.conf.urls import patterns, include, url
  from page import views
  from gs.admin import admin_site_gs
  
  urlpatterns = patterns('',
      url(r'^admin/', include(admin_site_gs.urls)),
  )
  </code></pre>
  
  <p>and I have application named page, where I place <strong>admin.py</strong> file:</p>
  
  
  
  <pre><code>from gs.admin import admin_site_gs
  from page.models import Page, Menu
  from django.contrib import admin
  
  class PageAdmin(admin.ModelAdmin):
      list_display = ('name', 'url', 'page_type')
  
  class MenuAdmin(admin.ModelAdmin):
      list_display = ('name', 'code')
  
  admin_site_gs.register(Page, PageAdmin)
  admin_site_gs.register(Menu, MenuAdmin)
  </code></pre>
  
  <p>So nothing here is working =( Neither <strong>/admin/my_admin</strong> view ( it returns 404 ), nor main admin page <strong>/admin</strong>. I don't see my models I registered in <strong>page/admin.py</strong> file.</p>
  
  <p>It may sounds fun, but I tried all staff working in 3-4 hours =)) As you might guess I'm completely newbie both in Django and Python... All I want to know now is how to append custom URLs and views to my overriden class of AdminSite?</p>
  
  <p>I removed <code>autodiscover</code> method, so now seems Django doesn't see nothing about file <strong>page/admin.py</strong>.</p>
  
  <p>But the first question is more interesting, why I've had 404 error on trying to access the <strong>/admin/my_admin</strong> page ...</p>
  
  <p>PS why my greeting at the beginning has been cutted o_O</p>