311,567 questions
-6
votes
0
answers
26
views
How Should I manage AI functions and business logic in back-end efficiently [closed]
My recent project is a AI Gym trainer app and I am in charge of the back-end. The project purpose is to let user get an AI Gym trainer who guide them daily with personalized suggestions.
The main AI ...
1
vote
0
answers
13
views
Failed import for drf_nested_routers
this import in urls.py gives me an error
from drf_nested_routers import DefaultRouter as NestedDefaultRouter
Import "drf_nested_routers" could not be resolved
however the drf_nested_routers ...
0
votes
0
answers
16
views
Django 3-Tier Nested Modeling
I have a problem where I need a deeply nested model. I have a model named Theme (it's called something else), and in theme I can have many Types. In a Type I can have many or none SubTypes. In a ...
0
votes
0
answers
22
views
Solving the circular problem in Django models
acconts/models.py
class UserX(AbstractBaseUser, PermissionsMixin):
username = models.CharField(max_length=255, unique=True)
is_staff = models.BooleanField(default=False)
is_superuser = models....
Advice
1
vote
3
replies
47
views
Best practice to switch between development and production urls when using Vue/Vite and Django
I want to build a website with Vue/Vite as frontend and Django as a backend.
When my frontend needs to get data from the backend I currently do something like this (which works perfectly fine):
const ...
2
votes
1
answer
102
views
How to disable Celery startup logs?
I'm getting a bunch of logs like this:
[2025-11-29 16:13:15,731]
def group(self, tasks, result, group_id, partial_args, add_to_parent=0):
return 1
[2025-11-29 16:13:15,732]
def xmap(task, it):
...
0
votes
0
answers
42
views
Connecting Django Rest API with React Native Application Issue [closed]
I made a system to help the company with a task work, and hopefully, be noticed to work with the development team.
One of the things that's mandatory for my project is its compatibility for mobile ...
-3
votes
0
answers
29
views
Paystack integration with Django [closed]
I'm trying to integrate paystack into my django E-commerce but I keep getting this error, ❌ Order creation error: [WinError 10061] No connection could be made because the target machine actively ...
2
votes
1
answer
69
views
How do I make a custom field output different datatypes depending on file asking for data?
I'm building a molecule properties displaying website using django and sqlite. The database takes a numpy array and stores it as a BLOB. Currently, it just outputs the numpy array back out when asked ...
0
votes
2
answers
70
views
API request tracing with NextJS, Nginx and Django
I’m trying to measure the exact time spent in each stage of my API request flow — starting from the browser, through Nginx, into Django, then the database, and back out through Django and Nginx to the ...
-2
votes
0
answers
78
views
get the data from the server with fetch API [closed]
i get the data from the server with fetch API it contains html, when i click on load more posts button it should load the html at the bottom of the page we got from the server, but it also loads the ...
Best practices
1
vote
5
replies
86
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 ...
-4
votes
0
answers
66
views
Restarting backend container became unreachable for traefik(504 Gateway timeout)
I’m having a problem and I can’t find a solution.
I have deployed a Django backend and a React frontend using Docker.
I’m using Traefik as a reverse proxy for the web server. When I start Traefik, the ...
-3
votes
1
answer
108
views
how do I get html page with fetch for reload part of the page?
I am getting data from the server. The view must renders an html page without reloading the entire page، but this renders whole page including the header of current page, this is a problem, each time ...
Advice
0
votes
1
replies
68
views
Django: Separate session expiry times for "normal" website and admin area
It would be nice if there were an easy way to define separate session expiry time for the admin area of a django website. So, admin users could log themselves into the "normal" website (seen ...