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
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(
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
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
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
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
6 matches
Mail list logo