Security with a solo Administrator?

0 views
Skip to first unread message

andrew

unread,
May 11, 2009, 9:24:31 AM5/11/09
to Django users
Hi,all

I'm designing a series of admin pages that only one admin can
logon ,I think there is no need to setup a single table to store only
one entry which contain "name""password" .

So , I think ,is this way safe enough to ensure secure my admin
access?

def login_admin(request):

if request.method == 'POST':
if(request.POST['input']=='Some code only I know'):
seesion['auth']='True'
else:
render_to_response("login_admin.html")
else:
render_to_response("login_admin.html")

Dougal Matthews

unread,
May 11, 2009, 10:07:53 AM5/11/09
to django...@googlegroups.com
Why not use django.contrib.auth and only allow super users to access said pages?

Or use django's permission system?

Dougal


---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/



2009/5/11 andrew <always...@gmail.com>
Reply all
Reply to author
Forward
0 new messages