The file I posted above is the actual file on my server. I don't think I have any conflicts in the urls.py. What are the databases that are created when you add 'django.contrib.admin' to your INSTALLED_APP and sync your database?
On Feb 22, 9:27 pm, Stanwin Siow <stanwin.kts...@gmail.com> wrote: > Check your urls.py there could be conflicting statements: > > http://stackoverflow.com/questions/4174610/django-admin-page-not-foun... > > Check out the stackoverflow question > > Best Regards, > > Stanwin Siow > > On Feb 23, 2012, at 11:20 AM, shartha wrote: > > > > > > > > > I have "django.contrib.admin" added to my INSTALLED_APP and database > > is also sync'ed! > > > On Feb 22, 9:04 pm, Stanwin Siow <stanwin.kts...@gmail.com> wrote: > >> check your settings.py file to ensure that you have the admin line > >> uncommented in installed apps. > > >> Best Regards, > > >> Stanwin Siow > > >> On Feb 23, 2012, at 10:58 AM, shartha wrote: > > >>> Hello, > > >>> I am trying to deploy a simple django site. The host I have chosen > >>> installed django for me. But the problem is they have modified the > >>> files a little bit and it sometimes gets confusing for a novice person > >>> like me. Here is my question: > > >>> This is the urls.py on the server: > >>> =========================================== > >>> from django.conf.urls.defaults import patterns, include, url > > >>> from django.shortcuts import render_to_response > >>> from django.contrib import admin > > >>> admin.autodiscover() > > >>> def index(request): > >>> return render_to_response('index.html', {}) > > >>> urlpatterns = patterns('', > >>> url(r'^$', 'hello.urls.index'), > >>> url(r'^admin/', include(admin.site.urls)), > >>> ) > >>> ============================================ > > >>> Now I have done the django tutorial part 1 and part 2 up to the point > >>> where it asks you to uncomment 3 lines inthe urls.py. The lines that > >>> are extra in the above files are the ones that were in it by default. > >>> The problem I have is when I try to go to /domain/admin I get the > >>> following error: > > >>> Page not found (404) > >>> Request Method: GET > >>> Request URL: http://chekonam.info/admin > >>> Using the URLconf defined in hello.urls, Django tried these URL > >>> patterns, in this order: > >>> ^$ > >>> The current URL, admin, didn't match any of these. > > >>> The django instance is installed in the hello folder. Could someone > >>> please tell me what's going on here? I could do all other steps in the > >>> tutorial without problem. But this one perplexes me! > > >>> Thank you! > > >>> -- > >>> 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 > >>> athttp://groups.google.com/group/django-users?hl=en. > > > -- > > 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 > > athttp://groups.google.com/group/django-users?hl=en. -- 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.