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
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
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.
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
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
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
6 matches
Mail list logo