Re: User Login in django
On Wed, Nov 4, 2009 at 10:31 AM, Daniel Roseman wrote: > > On Nov 4, 4:26 am, Denis Bahati wrote: > > Am real need to reinvent the wheel because i have a project which needs > to > > define some user roles, and enable users to update the status of their > own > > properties and not the other property. Thanks in advance for any help you > > give me. > Or just create your own authentication backends using your User models, Django will be able to handle session as usual and you will have what you want for your user model http://docs.djangoproject.com/en/dev/topics/auth/#specifying-authentication-backends I hope this helps, Julien --~--~-~--~~~---~--~~ 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: User Login in django
On Nov 4, 4:26 am, Denis Bahati wrote: > Am real need to reinvent the wheel because i have a project which needs to > define some user roles, and enable users to update the status of their own > properties and not the other property. Thanks in advance for any help you > give me. > Then use a UserProfile linked to the auth.User object. -- DR. --~--~-~--~~~---~--~~ 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: User Login in django
Am real need to reinvent the wheel because i have a project which needs to define some user roles, and enable users to update the status of their own properties and not the other property. Thanks in advance for any help you give me. On Tue, Nov 3, 2009 at 4:32 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > On 3 nov, 13:37, Denis Bahati wrote: > > Hi there, > > Am creating a login screen using django form but failing to get the > concept > > on how can i query from the database to get the user verified as a > > registered user. > > Do you have a real need for reinventing the wheel ? > > http://docs.djangoproject.com/en/dev/topics/auth/ > > > --~--~-~--~~~---~--~~ 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: User Login in django
On 3 nov, 13:37, Denis Bahati wrote: > Hi there, > Am creating a login screen using django form but failing to get the concept > on how can i query from the database to get the user verified as a > registered user. Do you have a real need for reinventing the wheel ? http://docs.djangoproject.com/en/dev/topics/auth/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
User Login in django
Hi there, Am creating a login screen using django form but failing to get the concept on how can i query from the database to get the user verified as a registered user. I want that a user is validated and displayed with his/her profile as well update his/her profile. The user can view only the allowed pages not viewing other pages. Here is my model for registering users and the form. class User(models.Model): title = models.ForeignKey(Title) first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) address = models.TextField() roles = models.ManyToManyField(Role) username = models.CharField(max_length=30) password = models.CharField(max_length=30) date_added = models.DateTimeField() def __unicode__(self): return '%s %s %s' %(self.title, self.first_name, self.last_name) class UserForm(ModelForm): date_added=forms.DateField() class Meta: model = User class User(forms.Form): username = models.CharField(max_length=30) password = models.CharField(max_length=30) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---