when user logs in to his desktop windows os authenticates him against Active Directory Server.
so Whenever he accesses a web page  he should not be thrown a login page for entering his userid or password.Instead, his userid and domain  need to be captured from his desktop and passed to the web server.(let him enter password after that)
Is this possible in python to get username and domain of of client?
win32api.GetUserName() gives the username of the server side.
Thanks in advance
What you want to do is called Single sign on (SSO) and it's much easier to implement on actual web server than Django.
So, you should check how to do SSO on Apache/Nginx/whateverYouAreUsing, then the web server will forward the authenticated username to your django app.
how to get username and domain of windows logged in client using python code?