Ok, I'm a total django noob here, so I am probably doing this wrong...  But 
here goes...

When someone comes to my django app's root (index), I need to verify their 
user-name (which is stored in a Linux environment variable).  Based on 
where (or if) I find their user-name, I want to send them to one of three 
different pages -- if I don't find them in any database, I want to add them 
to a given database, then send them to a page.

So here's what I have in my views.py file:
def index(request)
     current_username = os.environ['REMOTE_USER']

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/89ghQfC_J0IJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to