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 <scottma...@gmail.com> wrote:
> 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 Macri <scottma...@gmail.com> wrote:
>> Being new to django I am having trouble getting the built in views to
>> work.  After several hours I finally got the login/logout views to
>> work, now I am not able to get the profile, or any other built in
>> views working.  I am attempting to configure the change_password view.
>>
>> I have a custom urls.py file in myapp directory.  The main url points
>> to the one in myapp.  I don't have any trouble getting any of my own
>> custom views working.  However, when I try to access the change
>> password view I keep getting a view does not exist.  I'm not sure why
>> this is happening.
>>
>> Here is what I have:
>> main urls.py
>> urlpatterns = patterns('',
>>    url(r'^myapp/',include('myapp.urls')),
>> )
>>
>> In the myapp folder in urls.py I have a bunch of views like this:
>> urlpatterns = patterns('',
>>        url(r'^accounts/login/$',  'django.contrib.auth.views.login'),
>>        url(r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
>>        url(r'^accounts/out/in/$', 
>> 'django.contrib.auth.views.logout_then_login'),
>>        url(r'^accounts/password/change/$',
>> 'django.contrib.auth.views.password_change'),
>>        url(r'^index/?','hcp.views.index'),
>> )
>>
>> Attempting to access the following link works perfectly:
>> http://localhost:8000/myapp/accounts/login/?next=/myapp/home
>>
>> However, attempting to access any of the other built-in-views, such as:
>> http://localhost:8000/myapp/accounts/password/change/
>>
>> renders a ViewDoesNotExist error when logged in as the user.......
>>
>> I've followed the directions on the django site and created the
>> registration/password_change_form.html file in my templates directory
>> right next to my login.html file.
>>
>> I'm not sure what I can do, I've been struggling with getting these
>> views to work for most of the day again today.
>>
>> When I try to access the logout_then_login via the following link:
>> http://localhost:8000/myapp/accounts/out/in
>>
>> everything works perfectly.
>>
>> What could be some possible issues causing this problem?  Thanks.
>>
>> --
>> Scott
>
> --
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to