Saturday, April 2, 2011

Re: How to create django custom login page?

I suggest you to start from learning django.contrib.auth app sources.
Using them as your starting point should save a lot of your time:

1. Authorization form:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/forms.py#L61

2. Login view:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/views.py

3. And html template
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/login.html#L30

On Apr 1, 11:03 am, Nge Nge <ngenge.mon...@gmail.com> wrote:
> Hi All
>
> I saved the registered user data into my postgresql database.
> Now I have to create login page. I have to check the requested user
> name and password are in my database. If user name and password are in
> my database, redirect to success.html.  How should I do? Pls advise
> me.
>
> Thanks
> nge

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

No comments:

Post a Comment