Re: Django Redirect Not Working

2019-08-24 Thread Aldian Fazrihady
If that API is accessed via AJAX, then your JS code needs translate status 302 and Location header to JS code that sets "location.href" Regards, Aldian Fazrihady http://aldianfazrihady.com On Sat, 24 Aug 2019, 17:49 göktürk sığırtmaç, wrote: > Hello, my UserCreate class is create user via Crea

Django Redirect Not Working

2019-08-24 Thread göktürk sığırtmaç
Hello, my UserCreate class is create user via CreateAPIView. I want to check. if user is auth, auth user directly to 'profile' URI. class UserCreate(generics.CreateAPIView): serializer_class = UserCreateSerializer permission_classes = (~IsAuthenticated,) queryset = User.objects.all(

Re: Redirect not working

2014-12-04 Thread jogaserbia
url? >> is the testing url in the rendered index.html? >> if the javascript doesn't try to load the testing url there is something >> wrong with your js. >> Maybe $.get is supposed to get a success function as parameter? (wild >> guessing, I'm no

Re: Redirect not working

2014-12-04 Thread jogaserbia
with your js. > Maybe $.get is supposed to get a success function as parameter? (wild > guessing, I'm not a js guy) > > and why "redirect not working"? Can't see any redirects in your code. > > -- Florian > > -- You received this message because

Re: Redirect not working

2014-12-04 Thread Florian Schweikert
rl in the rendered index.html? if the javascript doesn't try to load the testing url there is something wrong with your js. Maybe $.get is supposed to get a success function as parameter? (wild guessing, I'm not a js guy) and why "redirect not working"? Can't see any redirects

Redirect not working

2014-12-04 Thread jogaserbia
Hi, I am trying to build a simple app. On the index.html page an input box and button. I put address in, click box to geocode and output some maps. When I click on the button, the geocoding seems to work (see chrome output below), but it does not bring up the testing URL. This is what