Opened 8 years ago

Closed 7 years ago

#12792 closed Uncategorized (needsinfo)

admin templates get wrong perms on installation in 1.1.1 tarball

Reported by: tjboring Owned by: nobody
Component: Template system Version: 1.1
Severity: Normal Keywords: templates, installation
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


as part of upgrading from 0.96 to 1.1.1, i followed the steps outlined here

  1. removed 0.96 package (apt-get remove python-django)
  2. downloaded the 1.1.1 tarball, Django-1.1.1.tar.gz
  3. unzipped it and installed it (python install)

after installation, i started playing with a toy app that i started in 0.96, and upon activing the admin interface in the 'definitive guide to django' realized that something was wrong. when trying to hit the /admin/ url, i was getting a TemplateDoesNotExist error. you can see the full stack trace here:

after removing and reinstalling django again and still getting the error, i decided to check the perms on the templates in /usr/lib/python2.5/site-packages/django/contrib/admin/templates. all the templates in admin/ and registration/ were 0640 and owned by root. so i did this:

sudo find /usr/lib/python2.5/site-packages/django/contrib/admin/templates -name "*.html" | xargs chmod 0644

after that, the admin site now works and can access/render the templates correctly. i'm not that familiar with python's setuptools, but i'm guess that something didn't go right during the install?

i'm happy to provide more info if needed. just let me know. :)


Change History (2)

comment:1 Changed 8 years ago by anonymous

Triage Stage: UnreviewedAccepted

I think there is something going onn here, this report and #12159 Russell recently closed report the same scenario, and the symptoms:

Exception Type: TemplateDoesNotExist at /admin/
Exception Value: admin/login.html

have been reported several (I'd say way too many) times in the django-users mailing list by users that have just installed by following our documentation and that start to play with the tutorial.

To tjboring: Can you please tell us what plaftorm and version are you using? What exact Python version/package are you using? Did you executed python install by being logged in as root? using su? sudo?, etc. etc.

I'm not telling this is a Django problem, but maybe we can get to know what the OS/platform/Python/distutils problem is so we can perhaps add a note to our docs or to be more prepared to support these new users that could get understandably frustrated by this.

comment:2 Changed 7 years ago by Luke Plant

Resolution: needsinfo
Severity: Normal
Status: newclosed
Type: Uncategorized
Note: See TracTickets for help on using tickets.
Back to Top