Re: Doubt : Redirect after registration
Hey, @Lior Sion : No I am not using anything other than the default . IN the database the user is created and active ( am able to login manually as the user ) . @Urun : Will try that out .. thanks. Thanks On Jul 26, 12:53 pm, Uros Trebecwrote: > I'm using django-registration and I solved the same problem by using > this: > > http://djangosnippets.org/snippets/1960/ > > Works like a charm :) > > Regards, > Uros > > On Jul 26, 8:41 am, Lior Sion wrote: > > > > > > > > > Are you using anything not defaulted, like django-registration? In the > > database - is the user created and the active flag is true? > > > On Jul 24, 2:16 pm, vaibhav agarwal wrote: > > > > Hi, > > > > I am using Django 1.3. I have started building my first site in django > > > and it seems real fun . I am learning a lot from it . But I have a > > > small problem . I want to login a user after he registers and then > > > redirect him to the home page of the site . For this I tried , the > > > stuff given in the > > > linkhttp://stackoverflow.com/questions/3222549/how-to-automatically-login... > > > but it does not work for me . When I tried this , the user is directed > > > to the home page but since that has the login_required function , it > > > asks the user to manually login which I dont want . How do I rectify > > > this ? > > > > Thanks in advance for the help . > > > > Cheers > > > > Vaibhav -- 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: Doubt : Redirect after registration
I'm using django-registration and I solved the same problem by using this: http://djangosnippets.org/snippets/1960/ Works like a charm :) Regards, Uros On Jul 26, 8:41 am, Lior Sionwrote: > Are you using anything not defaulted, like django-registration? In the > database - is the user created and the active flag is true? > > On Jul 24, 2:16 pm, vaibhav agarwal wrote: > > > > > > > > > Hi, > > > I am using Django 1.3. I have started building my first site in django > > and it seems real fun . I am learning a lot from it . But I have a > > small problem . I want to login a user after he registers and then > > redirect him to the home page of the site . For this I tried , the > > stuff given in the > > linkhttp://stackoverflow.com/questions/3222549/how-to-automatically-login... > > but it does not work for me . When I tried this , the user is directed > > to the home page but since that has the login_required function , it > > asks the user to manually login which I dont want . How do I rectify > > this ? > > > Thanks in advance for the help . > > > Cheers > > > Vaibhav -- 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: Doubt : Redirect after registration
Are you using anything not defaulted, like django-registration? In the database - is the user created and the active flag is true? On Jul 24, 2:16 pm, vaibhav agarwalwrote: > Hi, > > I am using Django 1.3. I have started building my first site in django > and it seems real fun . I am learning a lot from it . But I have a > small problem . I want to login a user after he registers and then > redirect him to the home page of the site . For this I tried , the > stuff given in the > linkhttp://stackoverflow.com/questions/3222549/how-to-automatically-login... > but it does not work for me . When I tried this , the user is directed > to the home page but since that has the login_required function , it > asks the user to manually login which I dont want . How do I rectify > this ? > > Thanks in advance for the help . > > Cheers > > Vaibhav -- 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: Doubt : Redirect after registration
Hi. Yes I did set AUTHENTICATION_BACKENDS to django.contrib.auth.backends.ModelBackend in settings.py . Also doesnt Django by default set AUTHENTICATION_BACKENDS to the value even if I dont set it in the settings.py folder? Inspite of this , the solution hasnt worked :(. Thanks Vaibhav On Jul 24, 11:45 pm, KPwrote: > Hi Vaibhav, > > Just checking - Did you set the AUTHENTICATION_BACKENDS to > django.contrib.auth.backends.ModelBackend in settings.py > > Thanks, > KP > > On Jul 24, 4:16 pm, vaibhav agarwal wrote: > > > > > > > > > Hi, > > > I am using Django 1.3. I have started building my first site in django > > and it seems real fun . I am learning a lot from it . But I have a > > small problem . I want to login a user after he registers and then > > redirect him to the home page of the site . For this I tried , the > > stuff given in the > > linkhttp://stackoverflow.com/questions/3222549/how-to-automatically-login... > > but it does not work for me . When I tried this , the user is directed > > to the home page but since that has the login_required function , it > > asks the user to manually login which I dont want . How do I rectify > > this ? > > > Thanks in advance for the help . > > > Cheers > > > Vaibhav -- 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: Doubt : Redirect after registration
Hi Vaibhav, Just checking - Did you set the AUTHENTICATION_BACKENDS to django.contrib.auth.backends.ModelBackend in settings.py Thanks, KP On Jul 24, 4:16 pm, vaibhav agarwalwrote: > Hi, > > I am using Django 1.3. I have started building my first site in django > and it seems real fun . I am learning a lot from it . But I have a > small problem . I want to login a user after he registers and then > redirect him to the home page of the site . For this I tried , the > stuff given in the > linkhttp://stackoverflow.com/questions/3222549/how-to-automatically-login... > but it does not work for me . When I tried this , the user is directed > to the home page but since that has the login_required function , it > asks the user to manually login which I dont want . How do I rectify > this ? > > Thanks in advance for the help . > > Cheers > > Vaibhav -- 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.