Web redirection

2024-01-23 Thread Raymond Nsubuga
Am working on a django react project but everytime i run my django server
at port 8000, it instead redirects to port 3000 belonging to react
automatically, what is the issue that can be causing this ?. And how am i
able to solve it ?

-- 
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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com.


Re: Web redirection

2024-01-23 Thread Obodoma Uzondu Vincent
Are you using cors?

On Tue, Jan 23, 2024 at 4:34 PM Raymond Nsubuga 
wrote:

> Am working on a django react project but everytime i run my django server
> at port 8000, it instead redirects to port 3000 belonging to react
> automatically, what is the issue that can be causing this ?. And how am i
> able to solve it ?
>
> --
> 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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com
> 
> .
>

-- 
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/CACsKspnyKniYVnN7dbVWkkSFdH7xYqzTCR2Mece3JPNhZYT1gg%40mail.gmail.com.


Re: Web redirection

2024-01-23 Thread Light Ofor
You know that Django is for the backend right, so what I do I have two
terminals open, one for Django and one for react, if I want my Django page
I simply copy the URL from the terminal and paste on my web browser and I
get my Django page.

On Tue, Jan 23, 2024, 7:58 PM Obodoma Uzondu Vincent 
wrote:

> Are you using cors?
>
> On Tue, Jan 23, 2024 at 4:34 PM Raymond Nsubuga 
> wrote:
>
>> Am working on a django react project but everytime i run my django server
>> at port 8000, it instead redirects to port 3000 belonging to react
>> automatically, what is the issue that can be causing this ?. And how am i
>> able to solve it ?
>>
>> --
>> 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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CACsKspnyKniYVnN7dbVWkkSFdH7xYqzTCR2Mece3JPNhZYT1gg%40mail.gmail.com
> 
> .
>

-- 
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/CAH%3Df_cGfk9thH5dJRuqigtgVzFvXyArgoLXmYC1V-hdcdTY49A%40mail.gmail.com.


Re: Web redirection

2024-01-23 Thread Muhammad Juwaini Abdul Rahman
Can you show the screenshot of your terminal?

On Tue, 23 Jan 2024 at 23:34, Raymond Nsubuga 
wrote:

> Am working on a django react project but everytime i run my django server
> at port 8000, it instead redirects to port 3000 belonging to react
> automatically, what is the issue that can be causing this ?. And how am i
> able to solve it ?
>
> --
> 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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com
> 
> .
>

-- 
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/CAFKhtoSA2ZeyUgQr4iJD41zbT8Zq-9kiJwzQbGKuE-faz8Jqgw%40mail.gmail.com.


Re: Web redirection

2024-01-23 Thread Akorede Habeebullah
Close both terminals, then restart the Django server first before starting
React.

On Wed, Jan 24, 2024, 2:35 AM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> Can you show the screenshot of your terminal?
>
> On Tue, 23 Jan 2024 at 23:34, Raymond Nsubuga 
> wrote:
>
>> Am working on a django react project but everytime i run my django server
>> at port 8000, it instead redirects to port 3000 belonging to react
>> automatically, what is the issue that can be causing this ?. And how am i
>> able to solve it ?
>>
>> --
>> 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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CAFKhtoSA2ZeyUgQr4iJD41zbT8Zq-9kiJwzQbGKuE-faz8Jqgw%40mail.gmail.com
> 
> .
>

-- 
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/CAK37-gPzmSBdehb-oSaaubFdQP40hcro39ZZRn89fvZ_dH6yPQ%40mail.gmail.com.


Re: Web redirection

2024-01-26 Thread Obam Olohu
if you want to set your port back top 8000: Check React's Proxy
Configuration:  pip install django-cors-headers
# settings.py

INSTALLED_APPS = [
# ...
'corsheaders',
# ...
]

MIDDLEWARE = [
# ...
'corsheaders.middleware.CorsMiddleware',
# ...
]

On Tue, Jan 23, 2024 at 4:34 PM Raymond Nsubuga 
wrote:

> Am working on a django react project but everytime i run my django server
> at port 8000, it instead redirects to port 3000 belonging to react
> automatically, what is the issue that can be causing this ?. And how am i
> able to solve it ?
>
> --
> 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/CAJpDcBTvmMd94%2BBnr3aN3c7VGv3m80opQDm7kiA83YxkZpEkHA%40mail.gmail.com
> 
> .
>

-- 
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/CAMc8uwNji2THLtaMKpjkNrv-voTJF2hBOMQjFxN9xPzgqp4rqQ%40mail.gmail.com.