Can u plz tell what you have done so we can learn also.

On Thu, 22 Aug, 2019, 11:16 AM RONAK JAIN, <jainronak...@gmail.com> wrote:

> Thank you so much all of you for your kind of help.
>
>
> I have done this Task.
>
>
> Thanks
>
>
>
>
>
> On Thu, Aug 22, 2019 at 10:21 AM Sipum <sipu...@gmail.com> wrote:
>
>> Hey Ronak,
>>
>> At first u did wrong in import.
>>
>> Do as below and compare what u have done.
>>
>> From django.contrib.auth.models import User
>> From django.contrib import auth
>>
>> Then when u are creating user do as-
>>  user = User.objects.create_user(uanme,pwd,email)
>>
>> THEN for login after sign up use as below -
>> auth.login(request, user)
>>
>> On Thu, 22 Aug, 2019, 10:02 AM 'Gaurav Ravindra Bole' via Django users, <
>> django-users@googlegroups.com> wrote:
>>
>>> in register method
>>> add user.set_password = request.POST.get('password') before user.save()
>>>
>>> On Wed, Aug 21, 2019 at 10:56 PM 'Amitesh Sahay' via Django users <
>>> django-users@googlegroups.com> wrote:
>>>
>>>> I guess you have forgotten to mention the APP name under which the
>>>> pages are created. Please cross-verify on my observation .
>>>>
>>>> Regards,
>>>> Amitesh Sahay
>>>> *91-750 797 8619*
>>>>
>>>>
>>>> On Wednesday, 21 August, 2019, 12:35:28 pm IST, RONAK JAIN <
>>>> jainronak...@gmail.com> wrote:
>>>>
>>>>
>>>> Hey
>>>> I tried but still getting like that...
>>>>
>>>> Attached screenshots take a look..
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> On Wed, Aug 21, 2019 at 12:23 PM Tosin Ayoola <tosinayoo...@gmail.com>
>>>> wrote:
>>>>
>>>> Using httpRedirect to d view 4 the URL u want user to b redirected to
>>>>
>>>> On Aug 21, 2019 06:21, "RONAK JAIN" <jainronak...@gmail.com> wrote:
>>>>
>>>> I am trying to redirect my registration page but, I am not getting *please
>>>> check my attached screenshot* and please let me know where I am doing
>>>> wrong...
>>>>
>>>>
>>>>
>>>> On Tue, Aug 20, 2019 at 10:26 AM Sipum <sipu...@gmail.com> wrote:
>>>>
>>>> Hey Ronit,
>>>>
>>>> It is very simple.
>>>> Just do return redirect ('/name used in url')
>>>>
>>>> If ur url for home page be like,  path('home', views.index, name='home')
>>>>
>>>> Then u hv to write as redirect('/home').
>>>>
>>>>
>>>> On Tue, 20 Aug, 2019, 9:43 AM Ronit Mishra, <ronnie94offic...@gmail.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> If I've understood your issue correctly, you probably just need to add
>>>> this lil' snippet in your settings.py
>>>>
>>>> LOGIN_REDIRECT_URL = '/' (or wherever you wanna redirect after login)
>>>>
>>>> Let me know if it works out for you!
>>>>
>>>> Regards,
>>>> Ronnie
>>>>
>>>> On Tue, Aug 20, 2019 at 2:40 AM Smovie Makers Club <rdrsh...@gmail.com>
>>>> wrote:
>>>>
>>>> return redirect('{{ request.scheme }}://{{ request.get_host }}')
>>>> This will redirect to home page
>>>>
>>>> On Mon, 19 Aug 2019, 3:52 pm RONAK JAIN, <jainronak...@gmail.com>
>>>> wrote:
>>>>
>>>> Hello Django developers,
>>>>
>>>> I am trying to redirect my registration page on the home page but, I am
>>>> not getting when I am trying with a registration page it will work for
>>>> registration but when I am doing with the home page so I am not getting.
>>>>
>>>> *Home Page : localhost:8000*
>>>>
>>>> *Could you help me out with this problem?*
>>>>
>>>> *Attached screenshots for Better Understanding please check it out.*
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CA%2BAqMUeYs7CALaGOmfFfJ%2BHp%3DWoKMyrjvYcOc8Za3JkTLFY_CQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUeYs7CALaGOmfFfJ%2BHp%3DWoKMyrjvYcOc8Za3JkTLFY_CQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAKqY%3DSTmdtAMa9N_zfcjgai_3XP7iGuXQgNsyPT2h5EuGCE7KQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKqY%3DSTmdtAMa9N_zfcjgai_3XP7iGuXQgNsyPT2h5EuGCE7KQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CACh0Ehx0QcsmJaU2NoV47WpJDgkSM-dpX9gkvvffgvD57uqoQA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CACh0Ehx0QcsmJaU2NoV47WpJDgkSM-dpX9gkvvffgvD57uqoQA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAGHZBzxwT7a_hPPSQ5XwE%3DaiDZv7nszXZZzcviKskyCHxSQGiQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAGHZBzxwT7a_hPPSQ5XwE%3DaiDZv7nszXZZzcviKskyCHxSQGiQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CA%2BAqMUfr2GkV1bxR9HOWH1Lv5FdknZcbULmAuWXrkCqiZDQS3g%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUfr2GkV1bxR9HOWH1Lv5FdknZcbULmAuWXrkCqiZDQS3g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAHLKn72u3TFpjakgZ9GhzEv2DYZtFHLCKCmDwQbGbr%3D0htwfnw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAHLKn72u3TFpjakgZ9GhzEv2DYZtFHLCKCmDwQbGbr%3D0htwfnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CA%2BAqMUdmuRmA%2Br6P%2B4jmVsAe38XWkrpc6-q7D%2B9kjOr6_oe9og%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUdmuRmA%2Br6P%2B4jmVsAe38XWkrpc6-q7D%2B9kjOr6_oe9og%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/1061381560.409727.1566408332049%40mail.yahoo.com
>>>> <https://groups.google.com/d/msgid/django-users/1061381560.409727.1566408332049%40mail.yahoo.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAK15RWvBQUdBNzNAP-HJ-fYCwyJjpBHRp1JmyaMQ-GP1%2BnoVZQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAK15RWvBQUdBNzNAP-HJ-fYCwyJjpBHRp1JmyaMQ-GP1%2BnoVZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGHZBzzRXmg7f%3DyU5UoEdrv1db_xxbb7R18QyjFne6SsNomxow%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGHZBzzRXmg7f%3DyU5UoEdrv1db_xxbb7R18QyjFne6SsNomxow%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BAqMUeRrv3B4qMvYmJ7iMW_DOaFfgV8HWTina2KDirTZ7aUJw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUeRrv3B4qMvYmJ7iMW_DOaFfgV8HWTina2KDirTZ7aUJw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGHZBzyUhm_iWA%3DXtZEtMEo00Nj2BkxDWKx6kePe0Y8eP%2BxNiw%40mail.gmail.com.

Reply via email to