Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

4 views
Skip to first unread message

olive

unread,
Nov 29, 2005, 3:29:23 PM11/29/05
to Django users
Hello,

when I try to access the admin site Django is complaining aout missing
adminmedia.py which is true.

There is a adminmedia.pyc instead.

svn up does not retrieve the file.

Debug message is:

AttributeError at /admin/
'module' object has no attribute 'register_tag'
Tequest Method: GET
Request URL: http://127.0.0.1:8000/admin/
Exception Type: AttributeError
Exception Value: 'module' object has no attribute 'register_tag'
Exception Location:
C:\soft\django_src\django\templatetags\adminmedia.py in ?, line 16

What is wrong ?

Olivier.

kmh

unread,
Nov 29, 2005, 3:42:11 PM11/29/05
to Django users
Hi Olivier,

Django is undergoing some rapid changes before the 1.0 release and some
of the files are being relocated in the source tree. Unfortunately the
byte-compiled .pyc files are not managed by subversion and can get left
hanging about in places they aren't meant to be, but where Python will
still find them. The work-around is to manually delete any orphaned
.pyc files such as adminmedia.pyc (or just all .pyc files as they will
be regenerated as needed).

Kieran

Kenneth Gonsalves

unread,
Nov 30, 2005, 12:17:38 AM11/30/05
to django...@googlegroups.com
On Wednesday 30 Nov 2005 2:12 am, kmh wrote:
> The work-around is to manually delete any orphaned
> .pyc files such as adminmedia.pyc (or just all .pyc files as they
> will be regenerated as needed).

better delete the whole thing and do a fresh svn co

--
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Grigory Fateyev

unread,
Nov 30, 2005, 8:56:54 AM11/30/05
to django...@googlegroups.com
Hello Kenneth Gonsalves!
On Wed, 30 Nov 2005 10:47:38 +0530 you wrote:

>
> On Wednesday 30 Nov 2005 2:12 am, kmh wrote:
> > The work-around is to manually delete any orphaned
> > .pyc files such as adminmedia.pyc (or just all .pyc files as they
> > will be regenerated as needed).
>
> better delete the whole thing and do a fresh svn co
>
find django_src/ -type f -name "*.pyc" -exec rm -f {} \;

--
Всего наилучшего!
greg [at] anastasia [dot] ru Григорий.

olive

unread,
Dec 2, 2005, 7:34:05 PM12/2/05
to Django users
Many thanks to everyone.

Reply all
Reply to author
Forward
0 new messages