Re: Wrong Redirect

2019-06-21 Thread ramadhan ngallen
hello still it redirect to the wrong path http://127.0.0.1:8000/users/register/register On Thu, Jun 20, 2019 at 12:24 PM Sipum Mishra wrote: > Hi Ramadhan, > > Instead of rendering to any page please use HttpResponseRedirect('put home > page url where u want to redirect' ). > > And also import d

Re: Wrong Redirect

2019-06-20 Thread Sipum Mishra
Hi Ramadhan, Instead of rendering to any page please use HttpResponseRedirect('put home page url where u want to redirect' ). And also import django.http import HttpResponseRedirect Do the above & let me know. I hope it will work. On Thu, 20 Jun, 2019, 2:41 PM ramadhan ngallen, wrote: > Hello

Re: Wrong Redirect

2019-06-20 Thread Aldian Fazrihady
Hi Ramadhan, I think redirection is only needed on valid and successful POST. On invalid POST, I will re-render the current form + error message without redirection. Regards, Aldian Fazrihady On Thu, 20 Jun 2019, 16:11 ramadhan ngallen, wrote: > Hello Team > I created an app(called users)

Re: wrong redirect from admins "View on site" link

2008-10-25 Thread Adi Jörg Sieker
Hi, On 25.10.2008 13:48 Uhr, felix wrote: > its gets the domain value from the Site object. I'm guessing that you > have that domain set to "localhost" thank you very much. That was excatly the problem. Setting the site to localhost:8000 did the trick. adi -- Adi J. Sieker mobile: +4

Re: wrong redirect from admins "View on site" link

2008-10-25 Thread felix
its gets the domain value from the Site object. I'm guessing that you have that domain set to "localhost" the view that actually does the relocation is at django.contrib.contenttypes.views shortcut site = Site.objects.all()[0] site.name site.domain site.domain = "127.0.0.0:8000" site.save()

Re: wrong redirect from admins "View on site" link

2008-10-24 Thread je
using proto-coltrane code from _Practical Django Projects_, i get the same error on trunk/apache/mod_python. i assume something around contrib.sites is misconfigured, but it could also be bad urls.py statements. any advice anyone? On Oct 24, 2:15 pm, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > H