Opened 20 years ago

Closed 12 years ago

#1805 closed defect (invalid)

'adminmedia' is not a valid tag library

Reported by: stanep@… Owned by: Adrian Holovaty
Component: Documentation Version: dev
Severity: critical Keywords: Template library django.templatetags.adminmedia
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Runing latest revison 2864
trying to go through tutorial 2

try to access admin pages
​http://localhost:8000/admin/

got this error

TemplateSyntaxError at /admin/
'adminmedia' is not a valid tag library: Template library django.templatetags.adminmedia does not have a variable named 'register'

...
Template error

In template C:\Python23\lib\site-packages\django\contrib\admin\templates\admin/login.html, error at line 4

Change History (8)

comment:1 by Adrian Holovaty, 20 years ago

Resolution: → invalid
Status: new → closed

Please use the ticket system for functionality improvements or bug reports -- not for tech-support.

comment:2 by opera7@…, 20 years ago

Component: Admin interface → Documentation
Keywords: Template library django.templatetags.adminmedia added
milestone: → Version 1.0
priority: normal → high
Resolution: invalid
Severity: normal → critical
Status: closed → reopened
Version: → SVN

So, this bug in documentation?
PS. I've stumbled on this bug using Django r4218, win32, python 2.4.3, going through tutorial.

comment:3 by Adrian Holovaty, 20 years ago

Resolution: → invalid
Status: reopened → closed

Please ask tech-support questions on the django-users mailing list.

comment:4 by (none), 20 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

comment:5 by Wojciech Bartosiak, 17 years ago

this is not a bug. You schould add thiese to your INSTALLED_APPS:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
}

in reply to:  5 comment:6 by haroldo@…, 12 years ago

Easy pickings: unset
UI/UX: unset

Replying to bartosak:

this is not a bug. You schould add thiese to your INSTALLED_APPS:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
}

I'm using django 1.6, and I'm having the same problem.
Here's my INSTALLED_APPS variable:

INSTALLED_APPS = (

'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'south',
'servidor',
'agendador',

)

I got exactly the same applications you're citing, and the problem still occurs.
Has this been tested on django 1.6? Doesn't look like so. In fact, 'adminmedia' has been deprecated since 1.4, but you're still using it.
Are you really sure this isn't a bug?

comment:7 by anonymous, 12 years ago

Resolution: invalid
Status: closed → new

seconded

comment:8 by Claude Paroz, 12 years ago

Resolution: → invalid
Status: new → closed
Note: See TracTickets for help on using tickets.
Back to Top