50 questions
0
votes
0
answers
49
views
Why is my page either not loading anything or giving me Template does not exist error? Django-React integration
[The templates section in settings.py]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'backend', 'dist')],
'...
0
votes
1
answer
58
views
Add multiple category for one post (drf+React)
I have a blog website built with Django and React. I'm currently working on adding a new blog post feature, and I want to allow users to select one or multiple categories for their blog post. Here's ...
-1
votes
2
answers
1k
views
importlib.metadata.PackageNotFoundError: No package metadata was found for djoser pyinstaller
Context
I made a Django react app. Now I want to make it a desktop application so that the user does not have type python manage.py runserver and also activate the environment every time. I used ...
0
votes
1
answer
2k
views
"options.allowedHosts[0] should be a non-empty string." when using PROXY with REACT and Django as backend in LOCALHOST
im facing error while im trying to use proxy in package.json on react app and connect to django backend api in local host but when i tried to npm start i get this error:
Invalid options object. Dev ...
4
votes
0
answers
602
views
ensure_csrf_cookie method decorator not setting CSRF token in browser cookies tab
I'm working on a project using Django as API backend (hosted on localhost:8000) and React (hosted on localhost:3000) as frontend. My plan is to host them on different servers in production as well.
I'...
0
votes
1
answer
292
views
Fetch data between two dates in React from Django API
I am trying to filter data between two dates and display it in a table. Currently, my table shows all the data from the database but I want the user to be able to select from that date to this date, ...
0
votes
1
answer
635
views
React/Django App: Need to update a field in a put route, with a custom function in the backend, before saving with a serializer
I'm trying to change the content of a field with my own function. I'm using a simplified function that adds commas between each word. I want to be able to send my comma-fied sentence to the frontend ...
0
votes
0
answers
47
views
Why there is extra url adding thing? How can I solve this error?
I am trying to deploy a django-react application. I deployed my backend api and it is working perfectly. I tried to deploy my react frontend using netlify. In localhost all this are working perfectly. ...
0
votes
0
answers
716
views
How to display an image from blob storage on my react/django website
My website is built with react/django. My website allows users to view vases from a database, each vase has 0,1 or many images(aka plate). The images are stored in Azure blob storage account and they ...
1
vote
1
answer
923
views
Django/React - Azure App Service can't find static files
I've deployed my Django React app previously through a dedicated server and now I am trying to achieve the same with Azure Web App function so I can use CI/CD easier. I've configured my project as ...
0
votes
1
answer
1k
views
How to upload image/media file from React to Django API?
I am able to save the data without the image field. I am new to react so don't know pretty much about this type of problems. What is the problem with the image field?? this isn't showing me any error ...
1
vote
1
answer
722
views
How to encrypt or Obfuscate REST API URL in Django
Hello Django REST API Experts,
We are building University Course portals where app offers various user types like Professor, Students and Admins using DJANGO/REACT. We are using REST API to connect ...
1
vote
2
answers
776
views
python manage.py runserver shows an old webapp page I developed
I am learning Django so I've created many Django webapps under one directory. For example,
\webapps
\polls
\polls
\api
\manage.py
...
\ponynote
\ponynote
\frontend
\...
0
votes
1
answer
158
views
Integrating react with django
I am learning how to integrate react with Django.. I found the tutorial by Dennis Ivy useful.. (linked below).
So according to that video, where we create a Django project, and create a separate ...
0
votes
1
answer
389
views
aws ec2 not serving static files in a django react application
I am trying to deploy a django react ecommerce app using aws ec2. when i run python manage.py runserver 0.0.0.0:8000 it is loading the page but not serving static files. The errors are
[24/Jun/2021 19:...