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 models
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 system but I want build it f
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 am looking forward to
>> create a customized pa
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
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',
>
> 'django.contrib.sessions',
>
> Ma
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 middleware, eg:
>
> 'django.contrib.sessions.middle
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 https://docs.djangoproject.com/en/1.6/topics/http/sessions/
>
> On Mar
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
> implementing this simple functionalit
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
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 production system
>
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
--
login.ht
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 reading my DB.
> I was trying
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:
> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-LOGIN_URL
>
> set
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 wrote:
>>
>> https://d
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 as shown in Django DOC as u given .but
> > s
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 :
>> > Thank You for your response Sergiy ,
>> >
>> > I already try'd t
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) { if($tempuser->{username
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 $username =
> $cgi->param("us
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 scr
19 matches
Mail list logo