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%2BAqMUfr2GkV1bxR9HOWH1Lv5FdknZ
> cbULmAuWXrkCqiZDQS3g%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.

Reply via email to