Ok, I got my app working with your suggestion. I replaced all my calls with myapp.views.name and all my views work.
However, I still get an error accessing login. Yes, I've installed it in my settings.py. Request Method: GET Request URL: http://localhost:8000/hcp/login/ Django Version: 1.3.1 Exception Type: ViewDoesNotExist Exception Value: Tried views in module django.contrib.auth. Error was: 'django.contrib.auth.views' is not a callable. Exception Location: /Library/Python/2.6/site-packages/django/core/urlresolvers.py in _get_callback, line 170 Python Executable: /usr/bin/python Python Version: 2.6.1 On Fri, Mar 9, 2012 at 9:02 AM, Scott Macri <scottma...@gmail.com> wrote: > Unfortunately changing that breaks my entire app so none of my views > work anymore. > > On Thu, Mar 8, 2012 at 11:34 PM, vikalp sahni <vikalpsa...@gmail.com> wrote: >> Hi, >> >> Here what i can see is you have added a prefix in your pattern, >> >> urlpatterns = patterns('myapp.views', >> url(r'^login/$','django.contrib.auth.views.login'),) >> >> This ideally should be. >> >> urlpatterns = patterns('', >> url(r'^login/$','django.contrib.auth.views.login'),) >> >> As the prefix is applied to all the url resolver views which are part of >> that pattern. >> >> https://docs.djangoproject.com/en/dev/topics/http/urls/#the-view-prefix >> >> Hope this helped. >> >> >> Regards, >> //Vikalp >> >> On Fri, Mar 9, 2012 at 7:23 AM, Scott Macri <scottma...@gmail.com> wrote: >>> >>> How am I supposed to configure access to the built in django login and >>> password forms after changing my urls.py settings? >>> I've setup the main project urls.py file like so: >>> url(r'^myapp/',include('myapp.urls')), >>> >>> I now have a urls.py file under myapp/urls.py setup similar to the >>> following: >>> urlpatterns = patterns('myapp.views', >>> url(r'^login/$','django.contrib.auth.views.login'),) >>> >>> Whenever I try to access the /myapp/login/ page I just get >>> ViewDoesNotExist blah, blah, blah..... >>> >>> I've tried configuring it in a different manner and still get the same >>> issue. I've created a login.html in registration/login.html in my >>> template directory, and tried in myapp/registration/login.html, and >>> still nothing. This is getting frustrating because its supposed to be >>> saving me time, but has taken more time than writing it myself so far. >>> >>> Does anyone have any suggestions as to what I can try to fix this? >>> 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. > > > > -- > Scott A. Macri > www.ScottMacri.com > (571) 234-1581 -- Scott A. Macri www.ScottMacri.com (571) 234-1581 -- 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.