Setting session variable at the time of login
I am new to django and building a school system but am experience developer otherwise having firm grip over rails, php, .net and java. 1) I am using django admin, I want to set a variable at the time of user login... the user login is coming from django code so I have no idea how to capture "after login" eventplease help. 2) Also is it easy to add/control/manage more fields to django's auto generated user profile ? or what is best practice here ? -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.
Re: Setting session variable at the time of login
1. You'll have to create your own login view. You can look at Django's view and just copy it. You can use the built-in authentication and template and everything, plus whatever else you want to do. 2. Here's how you do that: http://docs.djangoproject.com/en/1.2/topics/auth/#storing-additional-information-about-users -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.
Re: Setting session variable at the time of login
Great Pointer - I think this is what I was looking for. On Feb 8, 2:13 am, Shawn Milochik wrote: > 1. You'll have to create your own login view. You can look at Django's > view and just copy it. You can use the built-in authentication and > template and everything, plus whatever else you want to do. > > 2. Here's how you do > that:http://docs.djangoproject.com/en/1.2/topics/auth/#storing-additional-... -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.
Re: Setting session variable at the time of login
You may be interested in this school system django-classcomm: http://classcomm.googlecode.com/ demoed at http://classcomm.net/ I am the primary developer on this and I have JIRA project management and product backlog etc. so perhaps you would be more interested in working off an existing system. On Feb 7, 2:42 pm, SimpleDimple wrote: > I am new to django and building a school system but am experience > developer otherwise having firm grip over rails, php, .net and java. > > 1) I am using django admin, I want to set a variable at the time of > user login... the user login is coming from django code so I have no > idea how to capture "after login" eventplease help. > > 2) Also is it easy to add/control/manage more fields to django's auto > generated user profile ? or what is best practice here ? -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.
Re: Setting session variable at the time of login
This is great, I'll definitely look into this weekend...and get back to you. On Feb 9, 11:37 pm, Matteius wrote: > You may be interested in this school system > django-classcomm:http://classcomm.googlecode.com/ demoed > athttp://classcomm.net/ I > am the primary developer on this and I have JIRA project management > and product backlog etc. so perhaps you would be more interested in > working off an existing system. > > On Feb 7, 2:42 pm, SimpleDimple wrote: > > > I am new to django and building a school system but am experience > > developer otherwise having firm grip over rails, php, .net and java. > > > 1) I am using django admin, I want to set a variable at the time of > > user login... the user login is coming from django code so I have no > > idea how to capture "after login" eventplease help. > > > 2) Also is it easy to add/control/manage more fields to django's auto > > generated user profile ? or what is best practice here ? -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.