Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py [RSS Feed]

#1 Nov. 29, 2005 20:29:42

o.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


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.

Offline

#2 Nov. 29, 2005 20:42:25

k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


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

Offline

#3 Nov. 30, 2005 05:16:51

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


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
kghttp://www.livejournal.com/users/lawgontally ho!http://avsap.org.inಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Offline

#4 Nov. 30, 2005 13:56:40

Grigory F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


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 anastasia ru Григорий.

Offline

#5 Dec. 3, 2005 00:34:07

o.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


Many thanks to everyone.

Offline

  • Root
  • » Django
  • » Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support