Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 views

Django REST 404 sending params in the url

Good day, I'm having problems with django/ django rest apí Back: url(r'^' + baseurl + etl + eph + 'salud_folder_xls/listar/<str:accion>/', etlEPHSaludXLSListar), url(r'^' + baseurl + etl + ...
nepko's user avatar
  • 135
0 votes
2 answers
122 views

Django Rest Framework - Vue js - axios , i cant send session Cookie at DRF api

i try to do a simple session authentication with "django.contrib.auth.urls". While i can login and i recieve a session id and csrf, the first time i login sends at request the cookie when i ...
nickli's user avatar
  • 71
0 votes
0 answers
47 views

I got athentication error when im trying to post a request using axios api in vue.js

commerce website and this is my checkout.vue code when post request an authenticated error 401 and i don't know where the problem is some says its becuase axios and i should replace it with fetch api,...
Adem Hassen's user avatar
0 votes
1 answer
286 views

Access to XMLHttpRequest has been blocked by CORS policy in Django

I have deployed a web app and created a sub domain for it as the url of its backend (e.g main url is domain.com and subdomain is api.domain.com) and both are in https, too. While I request from ...
Gamigj's user avatar
  • 3
0 votes
0 answers
64 views

Displaying an image in Vue.js using Django REST

I saved an image from user forms to mssql as binary data, now I want to display the image in user profile. I am working in Vuejs, Django and MSSQL. But there seems to be a problem with the URL as the ...
laiba masood's user avatar
1 vote
1 answer
234 views

Vue Django app Forbidden (CSRF cookie not set.): 403 Forbidden

I suppose this would actually be a django question as I think there's something wrong with the backend. I have my Vue code in frontend/ (127.0.0.1:8080) and django code in backend/ (127.0.0.1:8000). I'...
kenshima's user avatar
  • 603
0 votes
1 answer
246 views

Django CSRF Verification Failed Despite Correct Token

I'm having trouble with CSRF verification in Django. Despite including the correct CSRF token in my POST requests and following all the recommended steps in the Django documentation, I keep getting a &...
Kevin Kwok's user avatar
0 votes
2 answers
501 views

How to implement login with Axios for multiple types of users?

I am building a web application ( with VueJs) that allows multiple types of users to login (e.g., regular users and administrators). I am using Axios to handle HTTP requests, but I am not sure how to ...
Miloud Mokkedem's user avatar
0 votes
1 answer
647 views

How to handle POST net::ERR_CONNECTION_REFUSED error in Axios Vue.js django

I am using Axios to send the data for the backend but it keeps breaking, what should I do? in .then(response => { this.$router.push('/Log-in') return response }), I returned the "response"...
wajd's user avatar
  • 27
0 votes
0 answers
34 views

Django Request input from User

I'm having a Django stack process issue and am wondering if there's a way to request user input. To start with, the user is loading Sample data (Oxygen, CHL, Nutrients, etc.) which typically comes ...
Patrick Upson's user avatar
0 votes
1 answer
547 views

Axios post request to route 'appName/v1/users/' (Djoser) throws 401 error but Postman doesn't

I'm new to Django and trying to build basic user authentication with REST API and a Vue.js frontend. To send the request, I am using axios, which is configured first in a seperate composable axios.js: ...
Artur Müller Romanov's user avatar
0 votes
2 answers
187 views

Vue3 frontend, Django back end. Key error for validated data in serializer

I have a Vue front end that collects data (and files) from a user and POST it to a Django Rest Framework end point using Axios. Here is the code for that function: import { ref } from "vue"; ...
user avatar
0 votes
0 answers
282 views

CSRF Origin check failed Django/Vue.JS

I am currently making a web app that uses Vue.JS for the frontend part and Django for the backend. I'm using django-rest-framework to communicate between the client and the server. I would like to ...
Matt's user avatar
  • 1
1 vote
1 answer
666 views

Django REST API: How to respond to POST request?

I want send POST request with axios(VueJS) and when Django server got a POST request then I want to get back that request message. I tried make functions when got an POST request in Django server and ...
Spooder02's user avatar
0 votes
1 answer
183 views

Error 404 NOT FOUND occurs when trying to GET from django

I am getting the 404 error Failed to load resource: the server responded with a status of 404 (Not Found) 127.0.0.1:8000/api/v1/products/$%7Bcategory_slug%7D/$%7Bproduct_slug%7D:1 my code for product/...
eryq's user avatar
  • 11

15 30 50 per page
1
2 3 4 5 6