Thank you for taking my jumbled post and helping me. It seems that
even though I haven't added my new script yet  in my INSTALLED_APPS it
was checking it. Removing the errors in that script cleared up the
problem.

Thank you,

jason

On Oct 26, 7:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2007-10-26 at 15:49 -0700, Jason Sidabras wrote:
> > Hello,
>
> > In an effort to keep up with svn with django I have just upgraded all
> > of my sites to the newest svn revision. The problem is after updating
> > I get the error:
>
> > >NameError at /admin/
> > >name 'PasswordField' is not defined
> > >Request Method:        GET
> > >Request URL:  http://xxx/admin/
> > >Exception Type:        NameError
> > >Exception Value:       name 'PasswordField' is not defined
> > >Exception Location:    
> > >/xxx/django/django_projects/eprbiomed/login/models.py inUserProfile, line 
> > >20
>
> This suggests the exception is being raised form inside your code, not
> Django. It's harder to guess much more, since we can't see the full
> traceback. Fortunately, you can (it's lower down on the debug screen and
> there's even a cut-and-paste version), so you might be able to get more
> information from there.
>
>
>
> > >Python Executable:     /xxx/Enviroment/bin/python2.5
> > >Python Version:        2.5.0
> > >Template error
>
> > >In template 
> > >/xxx/django/django_src/django/contrib/admin/templates/admin/base.html, 
> > >error at line 28
>
> > Boiling it down I find the last good revision is 6390 for me.
>
> > >Index: base.html
> > >===================================================================
> > >--- base.html   (revision 6390)
> > >+++ base.html   (revision 6391)
> > >@@ -22,7 +22,14 @@
> > >         {% block branding %}{% endblock %}
> > >         </div>
> > >         {% if user.is_authenticated and user.is_staff %}
> > >-        <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if 
> > >user.first_name %}{{ >user.first_name|escape }}{%                        
> > >else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a 
> > >href="doc/">{% trans 'Documentation' %}</a>                        / <a 
> > >href="password_change/">{% trans 'Change password' %}</a> / <a 
> > >href="logout/">{% trans 'Log out' %}</a>{% endbl                       ock 
> > >%}</div>
> > >+        <div id="user-tools">
> > >+        {% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ 
> > >user.first_name|escape }}{% else %}{{ user.userna                       me 
> > >}}{% endif %}</strong>.
> > >+        {% block userlinks %}
> > >+        <a href="{% url django.contrib.admin.views.doc.doc_index %}">{% 
> > >trans 'Documentation' %}</a>
> > >+        / <a href="{% url django.contrib.auth.views.password_change 
> > >%}">{% trans 'Change password' %}</a>
> > >+        / <a href="{% url django.contrib.auth.views.logout %}">{% trans 
> > >'Log out' %}</a>
> > >+        {% endblock %}
> > >+        </div>
> > >        {% endif %}
> > >         {% block nav-global %}{% endblock %}
> > >     </div>
>
> So try to work out which line the problem is coming from. Which call to
> the {% url %} tag is hitting the code that is causing the problem. The
> standard approach here would be to comment out most of the lines and
> uncomment them one-by-one until you can cause the error again.
>
> It sounds like you've overridden something and so calling one of these
> url tags ends up calling code that you've written and that code has some
> problem in it somewhere.
>
> Regards,
> Malcolm
>
> --
> Depression is merely anger without 
> enthusiasm.http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to