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

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

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

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

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

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