your admin-url has NO relation whatsoever to the name of your project or app.
IMHO, you should try to understand how the url-configuration works in the first place. you should also read the django-docs carefully ... I´m sorry that I can´t help more, but I think with reading (and understanding) the docs and a little bit of "try and error" you´ll be there very soon. from remembering my first steps with django I´d say: don´t become desperate, it´ll all be reasonable very soon. regards, patrick On 2 Jul., 17:40, kamal sharma <kamalp.sha...@gmail.com> wrote: > Thanks Patrick for your quick response. Please let me know if this info > helps you to understand. > > I am calling my project 'gweb' and my app 'web'? And my model > code is in file in 'gweb/web/models.py'. So in that case my admin url > should be > > http://server-name:1020/gweb/admin/ > > Please correct if I am wrong. > > I access my site in this way and it is working. > > http://server-name:1020/gweb/default/ > > I have tried all these options in urls.py > > # Uncomment this for admin: > # (r'^admin/', include('django.contrib.admin.urls')), > # (r'^admin/', include(admin.site.urls)), > (r'^admin/(.*)', admin.site.root), > > But not able to find what I am missing. How do I get the admin login page? > > Thanks, > Damudar > > On Thu, Jul 2, 2009 at 8:38 PM, patrickk <sehmasch...@gmail.com> wrote: > > > sorry, but I can´t help with apache-stuff. your django-setup seems > > correct to me ... I´ve never seen port 1020 used for the dev-server, > > but I´m not doing server-setups at all, so it might be very common. > > > you could try a simple direct_to_template in order to check whether > > (or not) apache is serving your site correctly. > > > regards, > > patrick > > > On 2 Jul., 16:56, kamal sharma <kamalp.sha...@gmail.com> wrote: > > > Hi Patrick, > > > > I am using apache web server. After doing following changes I tried to > > > access this URLhttp://server-name:1020/admin/andgot following error. > > > > The requested URL /admin/ was not found on this server > > > > Thanks, > > > Pankaj > > > > On Thu, Jul 2, 2009 at 8:00 PM, patrickk <sehmasch...@gmail.com> wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---