Re: Tutorial missing import: Http404

2015-04-10 Thread John Matthew Ian Davis
On Friday, April 10, 2015 at 3:33:36 PM UTC-7, Ramiro Morales wrote: > > On Fri, Apr 10, 2015 at 6:31 PM, John Matthew Ian Davis < > johnmatth...@gmail.com > wrote: > >> obviously one needs to change: >> >> from django.http import HttpResponse, >> >> to >> >> from django.http import HttpResponse,

Re: Custom password validation

2015-04-10 Thread Helton Alves
hey man, how are you ? I don't know if I understand very well, but you can try make a custom user and in forms file you can do the validation that you need. :D if that's right, you can follow this example: http://www.lasolution.be/blog/creating-custom-user-model-django-16-part-1.html I hope to h

Re: Custom password validation

2015-04-10 Thread Larry Martell
On Fri, Apr 10, 2015 at 3:14 PM, Larry Martell wrote: > I am trying to add custom password validation to the create user and > change password admin forms. I did not see anything in the django docs > about how to do this. From what I read on stackoverflow and other > sites it seems I have to write

Re: Tutorial missing import: Http404

2015-04-10 Thread Ramiro Morales
On Fri, Apr 10, 2015 at 6:31 PM, John Matthew Ian Davis < johnmatthewianda...@gmail.com> wrote: > obviously one needs to change: > > from django.http import HttpResponse, > > to > > from django.http import HttpResponse, Http404 > If you are talking about part 3 of the tutorial then it in fact con

Tutorial missing import: Http404

2015-04-10 Thread John Matthew Ian Davis
obviously one needs to change: from django.http import HttpResponse, to from django.http import HttpResponse, Http404 but that's a speed-bump that should not be in the tutorial. NameError at /polls/34/ global name 'Http404' is not defined Request Method: GET Request URL: http://localhost