urls.py and login forms

2012-03-08 Thread Scott Macri
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: urlpatter

Re: urls.py and login forms

2012-03-08 Thread vikalp sahni
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

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
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 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.

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
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

Re: urls.py and login forms

2012-03-09 Thread Tom Evans
On Fri, Mar 9, 2012 at 2:11 PM, Scott Macri wrote: > 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 > Requ

Re: urls.py and login forms

2012-03-09 Thread Scott Macri
Finally got it working. The issue was due to the url for the form method within the example template on the django site. I removed that and everything works great now. Thanks. On Fri, Mar 9, 2012 at 9:29 AM, Tom Evans wrote: > On Fri, Mar 9, 2012 at 2:11 PM, Scott Macri wrote: >> Ok, I got my