We'll need to know what released version or SN revision of Django you are using
to be able to help you.
--
Ramiro Morales
http://rmorales.net
You need to provide a name parameter to the constructor of your AdminSite
sub-class as described in the relevant Django 1.1 admin app documentation:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-objects
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf
>
> - generate admin in urls.py :
>
> from django.conf.urls.defaults import *
> from sites import admin_site
> urlpatterns = patterns('',
> (r'^admin/', include(admin_site.urls)),
> )
>
> Although there are no registered models, it can be observed that links
> are not correct.
>
> Any idea how to solve this problem or confirm that it is a bug will be
> helpful.
>
--
Ramiro Morales
http://rmorales.net
Ah, then you either need to either override only the get_urls() method
and leave the urls() method/url property one to be handled Django or to
write your urls() method so it returns the three tuple the rest of the
admin code is expecting (you are retuning a a single value).
This new capability was added in Django 1.1 core as part of
the URL namespacing changes and and is described both here:
http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces
and in the Django 1.1 release notes.
HTH,