I get the following output on running http://localhost:8000/admin/
TemplateDoesNotExist at /admin/ admin/login.html Request Method: GET Request URL: http://localhost:8000/admin/ Exception Type: TemplateDoesNotExist Exception Value: admin/login.html Exception Location: /usr/lib/python2.6/site-packages/django/template/ loader.py in find_template_source, line 74 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path: ['/home/projects/acms', '/usr/lib/python26.zip', '/usr/ lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/ lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib- dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site- packages/Numeric', '/usr/lib/python2.6/site-packages/PIL', '/usr/lib/ python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/ gtk-2.0'] Server time: Sun, 31 Jan 2010 09:51:17 +0300 Template-loader postmortem Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.load_template_source: /home/projects/acms/acms_templates/admin/login.html (File does not exist) Using loader django.template.loaders.app_directories.load_template_source: Using loader django.template.loaders.eggs.load_template_source: my url.py is from django.conf.urls.defaults import * from acms.views import hello, current_datetime, hours_ahead, login import os.path # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', ('^hello/$', hello), ('^log_in/$', login), ('^time/$', current_datetime), (r'^admin/', include(admin.site.urls)), (r'^time/plus/(\d{1,2})/$', hours_ahead), (r'^media/(?P<path>.*)', 'django.views.static.serve', {'document_root': 'settings.MEDIA_ROOT'}), and views.py from django.shortcuts import render_to_response from django.http import HttpResponse import datetime def hello(request): return HttpResponse("Hello world") def current_datetime(request): now = datetime.datetime.now() return render_to_response('base.html', {'current_date': now}) def hours_ahead(request, offset): try: offset = int(offset) except ValueError: raise Http404() dt = datetime.datetime.now() + datetime.timedelta(hours=offset) html = "<html><body> In %s hour(s), it will be %s. </body></html>" % (offset, dt) return HttpResponse(html) def login(request): return render_to_response('login.html', {'': locals()}) What could be the issue, since I am following the Django book? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.