:( As Daniel pointed out this is a simple case of RTFM. I didn't read and my eyes and brain ASSUMED (you know what that does) that 'django.contrib.auth' was 'django.contrib.admin' and just needed to be uncommented in urls.
Well, guess what? When you add the proper line IT WORKS! I am extremely embarrassed about this because although I am a newcomer to django I am not a technical or even programming newbie. Thank you for taking the time to point that out Daniel. On May 7, 2:09 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On May 7, 4:37 am, Andrew Burns <erebus...@gmail.com> wrote: > > > > > > > Django newbie here. I am learning by following the Django book. All > > is good until I try to enable the admin interface (on v1.1.1) and I > > get the following error: > > TemplateDoesNotExist at /admin/ > > admin/login.html > > > So I did some poking around and changed my TEMPLATE_DIRS to the > > following (which I don't think was the right way to do it anyway): > > import os.path #import so we can use magic for the template import > > TEMPLATE_DIRS = ( > > os.path.join(os.path.dirname(__file__), > > 'templates').replace('\ > > \','/'), > > > > '/usr/lib/pymodules/python2.6/django/contrib/admin/templates/', > > ) > > > When I do that I get: > > TemplateSyntaxError at /admin/ > > 'adminmedia' is not a valid tag library: Could not load template > > library from django.templatetags.adminmedia, No module named > > adminmedia > > > This is a 'vanilla' ubuntu django install (I didn't pull from SVN) so > > I am hoping that this is a well-known issue, I read the comments on > > the book site and none appeared to be this issue. > > > Can someone give me some pointers? > > > Thanks in advance. > > Are you sure you have added 'django.contrib.admin' to the > INSTALLED_APPS tuple? > > With that, you shouldn't need to hack the template path. > -- > DR. > > -- > 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 > 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-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.