you have defined it in urls.py ... with (r'^admin/(.*)', admin.site.root), your URL is http://server-name:1020/admin/
after adding 'django.contrib.admin' to your INSTALLED_APPS you have sync the database, of course: python mangage.py syncdb regards, patrick On 2 Jul., 15:13, kamal sharma <kamalp.sha...@gmail.com> wrote: > Hi, > > I am trying to setup admin page. > > Django version: alpha version of 1.1 > Python Version: Python 2.5.2 > > I have followed the following steps to set up admin page. > > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a... > > 1. settings.py: > > # Add 'django.contrib.admin' to INSTALLED_APPS. > > 2. web/admin.py: > > from django.contrib import admin > from gnatsweb.web.models import table > > admin.site.register(table) > > 3. urls.py: > > from django.contrib import admin > > admin.autodiscover() > > # Uncomment this for admin: > (r'^admin/', include('django.contrib.admin.urls')), > > in place of this I have used this also but still not working. > > (r'^admin/(.*)', admin.site.root), > > My application URL to access the site is > "http://server-name:1020/web/database/ > > In this case what will be my admin site URL? > > Is this correct?http://server-name:1020/web/admin/ > > Please help me to know, what I am missing here? > > Thanks, > Pankaj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---