Re: How to pass the username into a parameter in the views.py

2010-01-24 Thread min
Thank you! On Jan 25, 11:51 am, Sam Lai wrote: > 2010/1/25 min : > > > Hi, everyone. > > > In the first place, I will login to access a web page by my "usename" > > When I signed in, how to send my "username" into a parmaeter in the > > views.py > >

Re: How to pass the username into a parameter in the views.py

2010-01-24 Thread Sam Lai
2010/1/25 min : > Hi, everyone. > > In the first place, I will login to access a web page by my "usename" > When I signed in, how to send my "username" into a parmaeter in the > views.py Look here

How to pass the username into a parameter in the views.py

2010-01-24 Thread min
Hi, everyone. In the first place, I will login to access a web page by my "usename" When I signed in, how to send my "username" into a parmaeter in the views.py @login_required def new_page(request): #how to get the username? form = newForm() variables = RequestContext(request,