Re: built-in-views trouble

2012-03-12 Thread Joel Goldstick
On Mon, Mar 12, 2012 at 4:04 AM, ajohnston wrote: > 1. >> >> Exception Type: ViewDoesNotExist >> Exception Value:Tried logout_user in module myapp.views. Error was: >> 'module' object has no attribute 'logout_user' > >  2. >> >> Here is my current url setting: >> url(r'^accounts/password_reset/$',

Re: built-in-views trouble

2012-03-12 Thread ajohnston
1. > Exception Type: ViewDoesNotExist > Exception Value:Tried logout_user in module myapp.views. Error was: > 'module' object has no attribute 'logout_user' > 2. > Here is my current url setting: > url(r'^accounts/password_reset/$', > 'django.contrib.auth.views.password_reset', name='password_

Re: built-in-views trouble

2012-03-11 Thread Scott Macri
Hmmm, something must have happened when I messed with my urls.py. Now I get the exact same issue with my admin link. Caught ViewDoesNotExist while rendering: Tried logout_user in module hcp.views. Error was: 'module' object has no attribute 'logout_user' Request Method: GET Request URL:http:/

Re: built-in-views trouble

2012-03-11 Thread Scott Macri
Django version is 1.3.1 final. If I call /accounts/password_reset/ I get the following error: Request Method: GET Request URL:http://localhost:8000/myapp/accounts/password_reset/ Django Version: 1.3.1 Exception Type: ViewDoesNotExist Exception Value: Tried logout_user in module myapp

Re: built-in-views trouble

2012-03-11 Thread ajohnston
Out of curiosity, which version of Django are you using? Which message to you get when ViewDoesNotExist is raised?: "Could not import %s.%s. View is not callable." % "Could not import %s. View does not exist in module %s." % "Could not import %s. Parent module %s does not exist." % Alan On Satu

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
Strange. The same issue occurs with the password_reset view as well. On Sat, Mar 10, 2012 at 5:05 PM, Scott Macri wrote: > That's exactly what I was thinking.  So I changed > 'django.contrib.auth.views.change_password' to > 'django.contrib.auth.views.bullfrog' in the urlconf.  It renders a > com

Re: built-in-views trouble

2012-03-10 Thread Bill Freeman
All I can suggest is some pdb time. First, from the manage.py shell, can you import your view's module, and can you reference your view function (or class) off of the name of your import? Run type on it, and otherwise inspect it. Call it from pdb.run() (you have to put the expression that calls

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
That's exactly what I was thinking. So I changed 'django.contrib.auth.views.change_password' to 'django.contrib.auth.views.bullfrog' in the urlconf. It renders a completely different error. Something to the effect of bullfrog not existing. On Sat, Mar 10, 2012 at 3:12 PM, Bill Freeman wrote: >

Re: built-in-views trouble

2012-03-10 Thread Bill Freeman
I would expect ViewDoesNotExist to not be sensitive to the template. It sounds like the urlconf is specifying a view function that does not exist (at least in the way and in the place that it is specified). On Sat, Mar 10, 2012 at 3:07 PM, Scott Macri wrote: > Even explicitly setting the templat

Re: built-in-views trouble

2012-03-10 Thread Scott Macri
Even explicitly setting the template name causes a ViewDoesNotExist error to occur. url(r'^accounts/password/change/$', 'django.contrib.auth.views.password_change',{'template_name':'registration/password_change_form.html',}), Anyone have any ideas? Thanks. On Fri, Mar 9, 2012 at 1:32 PM, Scott M