Category : reactjs

I have built a virtual makeover app using python like this one: https://www.maybelline.com/virtual-try-on-makeup-tools. I want to connect this to my React frontend by capturing the webcam input, send it to the Django backend and return the video stream to the frontend so that the virtual makeover happens in real-time i.e. apply lipstick, foundation, etc. Any ..

Read more

I am trying to deploy a web app using Mongo Atlas, Heroku for flask and Firebase for react hosting I am running into the issue where the flask session does not persist between request calls when deployed to heroku declraing app app = Flask(__name__) sess = Session(app) app.config.from_object(__name__) app.config[‘SESSION_COOKIE_PATH’] = ‘/’ app.config[‘SESSION_REFRESH_EACH_REQUEST’] = False app.config[‘SESSION_COOKIE_NAME’] ..

Read more

when i use the create function using django rest framework it dosent create a new person instead it shows an error 405 Method Not Allowed. I even tried creating new person using frontend it just dosent work. views.py @api_view([‘POST’]) def create_person(request): serializer = PersonSerializer(data=request.data) if serializer.is_valid(): serializer.save() return Response(serializer.data) create.js: const Create = () => ..

Read more