Skip to main content

Questions tagged [django]

Django is an open-source server-side web application framework written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

django
0 votes
0 answers
9 views

How to send authentication session id to django backend using fetch api?

saveBtn.addEventListener('click', function() { const csrftoken = getCookie('csrftoken'); fetch('http://localhost:8000/card/{{ auction.slug }}/add/', { method: 'GET', ...
Minecraft PC's user avatar
0 votes
0 answers
11 views

Why session field is not being deleted in django Server sent event?

class task_check(AuthententicatedOrReadOnlyAPIView): content_negotiation_class = IgnoreClientContentNegotiation def get(self, request): timeout = int(request.query_params.get('timeout', 300)) ...
Talk is Cheap Show me Code's user avatar
0 votes
0 answers
12 views

if my application is running with docker compose how can I access localhost of within that application

I have a django application which runs through docker compose on my local system on localhost:80. I have another application which runs at localhost:3000. I want to access http://localhost:3000 within ...
Always_a_learner's user avatar
0 votes
0 answers
12 views

How to check a generate code by simply-jwt

I try to verify a code generate by simply-jwt, but the second step when I tried to verify this, it's become False and I try to understand why the purpose it's to generate a code after login and verify ...
jordan's user avatar
  • 35
1 vote
1 answer
17 views

Wagtail/Django Taggit - Unique Tag pool for each set of child pages

For the sake of example, let's say we wanted to create multiple blogs, but in the same app. Each blog has blog posts that are children of each respective blog. Is there away to set up Taggit so that ...
300bigboys's user avatar
0 votes
0 answers
7 views

How do I make ApolloClient use multipart/form-data when sending requests to django graphql endpoint

I am writing a Django/GraphQL/Apollo/Vuetify app, and I am struggling to navigate the CORS/CRSF consequences. As far as I understand, I think that Django and GraphQL are doing the right thing on the ...
spierepf's user avatar
  • 2,846
0 votes
0 answers
19 views

No Module Found (import cloudinary) - Django Heroku

import cloudinary_storage import os import ssl import certifi import dj_database_url Anytime I try to deploy to Heroku, it deploys successfully, but the page says application error and cloudinary ...
Oluwaseyi Olufemi's user avatar
-1 votes
0 answers
11 views

How do I create a REST API for a project for a hackathon using django which I have no experience of?

I have to create a REST API for a project in django for a hackathon, I have never created one. I have worked on basic django projects but have not built an api. I tried following along a tutorial but ...
chiranjit saha's user avatar
0 votes
0 answers
20 views

I have problems loading a machine learning model on my Django site

I've build an image classification model that classifies images as one of three classes: cucumber, zucchini, or neither. Now I want to deploy this model to a Django website but I am currently ...
Aske Olesen's user avatar
-1 votes
0 answers
20 views

Display just 10 pages for pagination with django

Im working on a django pagination and its okay but next and previous buttons in django pagination just skip 1 page. I want that django pagination show number 1 to 10 pages for pagination at first and ...
Ram Ram's user avatar
2 votes
1 answer
30 views

How to run a function at startup before requests are handled in Django?

I want to run some code when my Django server starts-up in order to clean up from the previous end of the server. How can I run some code once and only once at startup before the server processes any ...
Peter Kronenberg's user avatar
3 votes
1 answer
18 views

Django error: Reverse for 'user_workouts' not found. 'user_workouts' is not a valid view function or pattern name

I'm working on my project for a course and I'm totally stuck right now. I'm creating a website to manage workouts by user and the create workout do not redirect to the user's workouts page when I ...
Anass Najam's user avatar
1 vote
0 answers
12 views

Django templates and css: is there a workaround for getting my preload link tags to match my css relative paths to font sources?

Background I just started using Digital Oceans Spaces for storing my static files for my Django web app (connected using django-storages library). Previously, I used link elements in the head of my ...
DevinG's user avatar
  • 464
0 votes
0 answers
23 views

changes made to my JavaScript files in a React project are not reflected in the UI when compiling using 'npm start'. Reflecting only when rebuilt

Initial issue faced: "Invalid options object. Dev Server has been initialized using an options object that does not match the API schema" TO resolve this issue added setupProxy.js inside src ...
Nivedha's user avatar
0 votes
2 answers
25 views

CSRF FAIL WITH JMETER

I have a problem with JMeter. I am trying to perform performance tests with the BlazeMeter extension. When making some requests, I get an error with the CSRF. I already tried extracting the token with ...
Daniel Medrano's user avatar

15 30 50 per page
1
2 3 4 5
11