31,710 questions
0
votes
0
answers
51
views
Django Admin: User without permissions can still see a model (UserIncomeSupportDocument) — how to hide it?
I have a Django Admin setup where a Marketing user should only be allowed to view Clients and Therapists.
However, even after removing all permissions related to UserIncomeSupportDocument, the ...
2
votes
1
answer
95
views
Failed import for drf_nested_routers
This import in urls.py...
from drf_nested_routers import DefaultRouter as NestedDefaultRouter
...gives me an error:
Import "drf_nested_routers" could not be resolved
However, ...
-1
votes
1
answer
81
views
DocuSign Sandbox: “ENVELOPE_ALLOWANCE_EXCEEDED” After 114 Envelopes and Trial Account Cannot Create Integration Key [closed]
I am working with a DocuSign sandbox (developer) environment to integrate embedded signing and webhook functionality into a Django REST Framework application. Initially, I was able to send envelopes ...
Best practices
1
vote
5
replies
108
views
How should I structure a Django backend with a Vue 3 frontend for a news application?
I’m building a small “newsroom” application where Django handles the backend (API, authentication, admin) and Vue 3 handles the frontend UI. I’m still fairly new to combining Django with a modern ...
-3
votes
2
answers
99
views
Python Django Rest Framework [closed]
What is the difference between decorator @api_view and @csrf_exempt in project level django rest framework? I need the difference and which is better to develop the project.
2
votes
2
answers
70
views
Django REST project doesn’t detect apps inside the “apps” directory when running makemigrations
I have a Django REST project where I created a directory called apps to store all my apps.
Each app is added to the INSTALLED_APPS list in my settings file like this:
INSTALLED_APPS = [
'django....
1
vote
1
answer
79
views
403 Forbidden: "CSRF Failed: CSRF token missing." on DRF api-token-auth/ after applying csrf_exempt
I'm encountering a persistent 403 Forbidden error with the detail:
CSRF Failed: CSRF token missing.
This happens when trying to obtain an authentication token using Django REST Framework's built-in ...
2
votes
2
answers
67
views
Django Rest Framework ListAPIView user permissions - Cant seem to get them working
I have a Django project with DjangoRestFramework. I have a simple view, Facility, which is a ListAPIView. Permissions were generated for add, change, delete and view.
I have create a new user, and ...
0
votes
1
answer
65
views
Create question with options from same endpoint
I am making a back-end system using DRF in Django. This is my first project in Django and DRF. I am using Django purely as a REST back-end
I am making a quiz/mcq application
This is from my questions ...
4
votes
1
answer
108
views
can I use get_or_create() in django to assign a global variable?
I am an intern at a company and we are using django as framework.
I was working on a two part register system in which an admin performs the initial registration after which a link is sent to the user ...
-1
votes
1
answer
57
views
Django Generics custom quering
I was working on notion like app, so I have a Note(consider as a Page in notion) and in that i am having blocks, where block having different id's and held with Note in Foreign field so now in views ...
0
votes
0
answers
61
views
Django Testing in microservices with more than 1 db running
I would like to ask about a certain topic that is tough one. Im working in a project that has microservices architecture with more than 1 databases running every time. in django, how can I perform ...
0
votes
1
answer
70
views
My django API “next” link uses a stale hostname only when receiving requests from GKE services (Like Cloud Run)
What are the details of your problem?
I have a application in Django that is deployed using GKE. It uses an ingress to deploy it...
Those manifests.yml that are used for deploying applications on ...
0
votes
1
answer
160
views
POST requests from Cloud Run arriving as GET requests in my Django REST API
I have a serverless pipeline on Google Cloud. It consists of three total steps:
A video uploader that sends videos to Google Cloud Storage. Working fine.
An eventarc + pub/sub trigger that fires ...
1
vote
0
answers
38
views
Django timestamp__date filtering works locally but returns extra rows in production?
I have a Django API that returns self signedup users in a given date range. The AuditLog model stores timestamp with DateTimeField(default=timezone.now) and USE_TZ=True.
Locally, the date filter works ...