Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Yes I was trying to implement it for learning django properly. Alright , I got your point. On Thu, Mar 20, 2014 at 9:55 PM, C. Kirby wrote: > Are you building your own authentication system as a learning opportunity > or to actually use in a production system? If it is for a

Re: Custom Login page in Django

2014-03-20 Thread C. Kirby
Are you building your own authentication system as a learning opportunity or to actually use in a production system? If it is for a production system then...don't. There is quite a bit of code in django Users to handle passwords and keep passwords safe and authentication secure. If you want to

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
You need to have sessions if you want login so you can tie a browser to a user, and the CSRF is tied to the session cookie. F. On Mar 20, 2014, at 11:28 AM, Aryak Sengupta wrote: > Alright... Thanks a lot. But do I really require using sessions for >

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Alright... Thanks a lot. But do I really require using sessions for implementing this simple functionality ... Or is it just a bad design that I had been trying? On 20 Mar 2014 20:28, "François Schiettecatte" wrote: > See

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
See https://docs.djangoproject.com/en/1.6/topics/http/sessions/ On Mar 20, 2014, at 10:50 AM, Aryak Sengupta wrote: > Can you please elaborate > > On 20 Mar 2014 20:17, "François Schiettecatte" > wrote: > You may be missing some

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Can you please elaborate On 20 Mar 2014 20:17, "François Schiettecatte" wrote: > You may be missing some middleware, eg: > > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > >

Re: Custom Login page in Django

2014-03-20 Thread François Schiettecatte
You may be missing some middleware, eg: 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions', Maybe your browser is rejecting cookies. François On Mar 20, 2014, at 10:43 AM, Aryak Sengupta

Re: Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
Yes I do Where am I going wrong then? On 20 Mar 2014 20:06, "Robin Lery" wrote: > do you have {% csrf_token % } in your forms? > > > On Thu, Mar 20, 2014 at 7:36 PM, Aryak Sengupta > wrote: > >> I am new to Django (but not new to python) and I

Re: Custom Login page in Django

2014-03-20 Thread Robin Lery
do you have {% csrf_token % } in your forms? On Thu, Mar 20, 2014 at 7:36 PM, Aryak Sengupta wrote: > I am new to Django (but not new to python) and I am looking forward to > create a customized page using django. I have read about django's inbuilt > authentication

Custom Login page in Django

2014-03-20 Thread Aryak Sengupta
I am new to Django (but not new to python) and I am looking forward to create a customized page using django. I have read about django's inbuilt authentication system but I want build it from scratch So here are the few ideas I am stumbling upon : 1. Creating a *users* class in the

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Jason Sibre
Hi, Just a hunch, but it kinda smells like your web server isn't executing the CGI script. I'd suggest checking into what is necessary to get your server to execute CGI, vs serving it up as text. On Oct 15, 2012, at 5:40 AM, Pervez Mulla wrote: > Instead of CGI server path , I places perl

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Pervez Mulla
Instead of CGI server path , I places perl script in static folder and given path for that . On Mon, Oct 15, 2012 at 4:09 PM, Pervez Mulla wrote: > responseText: #!/usr/bin/perl -T use CGI; use DBI; use strict; use > warnings; use netsharkusr; my $cgi = CGI->new; my

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Pervez Mulla
responseText: #!/usr/bin/perl -T use CGI; use DBI; use strict; use warnings; use netsharkusr; my $cgi = CGI->new; my $username = $cgi->param("username"); my $password = $cgi->param("password"); my $tempuser = new netsharkusr(); if($tempuser->readbyusername($username) eq 1) {

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Sergiy Khohlov
please provide error 2012/10/15 Pervez Mulla : > On error note its printing all pelr script itself. > > > On Mon, Oct 15, 2012 at 3:31 PM, Sergiy Khohlov wrote: >> >> please provide error message >> >> 2012/10/15 Pervez Mulla : >>

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Pervez Mulla
On error note its printing all pelr script itself. On Mon, Oct 15, 2012 at 3:31 PM, Sergiy Khohlov wrote: > please provide error message > > 2012/10/15 Pervez Mulla : > > Thank You for your response Sergiy , > > > > I already try'd to run this script

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Sergiy Khohlov
please provide error message 2012/10/15 Pervez Mulla : > Thank You for your response Sergiy , > > I already try'd to run this script as shown in Django DOC as u given .but > still it didnt work:( > > Thank You > Pervez > > On Mon, Oct 15, 2012 at 1:28 PM, Sergiy Khohlov

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Pervez Mulla
Thank You for your response Sergiy , I already try'd to run this script as shown in Django DOC as u given .but still it didnt work:( Thank You Pervez On Mon, Oct 15, 2012 at 1:28 PM, Sergiy Khohlov wrote: >

Re: How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Sergiy Khohlov
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-LOGIN_URL set this one in setting.py 2012/10/15 Pervez Mulla : > Hi, > > I have login.html , login,js ang login.pl. > > I want to integrate basic login page in Django with perl back-end from where > Am

How can I integrate simple Custom login page in Django.......?

2012-10-15 Thread Pervez Mulla
Hi, I have login.html , login,js ang login.pl. I want to integrate basic login page in Django with perl back-end from where Am reading my DB. I was trying to integrate it from last day but come out with empty .There might be some settings in setting.py. Below is my code --