🏅♐Mark
I have another doubt and this doubt goes me to a depression life
My question is as a django developer nowadaysI am always depending on ai tools. is that good habit for my future ? but I am good to prompt and also I know where to implement that code
Can you please tell me is this a good approach?
🏅♐Mark
Ayush
Anyone can suggest 2 or 3 easy django projects for resume (beginning level)...???
Dhurke Sahdmadhi
Has anyone worked with pub/sub like RabbitMQ with django?
How do you setup?
I want to avoid ready made libs as much as possible
Maxim
Dhurke Sahdmadhi
No I meant something specific to django. Like django-redis. If I can not avoid I don't mind. Do you have link to any good project that can be used as a good blue print?
Charly
Dhurke Sahdmadhi
So I can reuse it in some form if using another python stack
Dhurke Sahdmadhi
If that doesn't sound like a good idea than which one should I go ahead with. Considering that it goes well with the existing system. How is pika?
Sanket
Any one work with django-berry ?
.
hi can anyone help im using minio everything is woring file uploading file and i can access this with anonymous but when im access admin panel the css not working because the url have double https:// how to fix this all other place this is working fine
<link rel="stylesheet" href="https://https://url.demo.dev/jordanfradet/static/admin/css/base.css">
Adithya
I'm integrating a MERN-based chat system into my Django app. The user logs in through Django (using allauth), and I send JWT tokens (access & refresh) and user details to the Express backend via a redirect. However, cookies (tokens/user info) aren't being stored in the browser, leading to 401 errors in the React frontend. I suspect it's due to cross-origin or redirect-related cookie issues. How can I securely pass and persist tokens and user details in the browser for the chat system?
Can anyone help me to resolve this issue?
Yathish
Adithya
I'm using Django for my main app and adding a chat system built with MERN (React + Express) as a separate service. Users log in through Django. When they open the chat, I send JWT tokens and user info to the Express backend. But the tokens aren't saved in the browser, so React gets 401 errors. I think it's a cookie issue because of the redirect. How can I store the tokens and user info properly in the browser for the chat system to work?
Yathish
store the token on the localstorage instead
Adithya
How can I access localStorage in Express backend? Is it possible to store local storage from the backend?
Yathish
Charly
𝐄𝐫𝐟𝐚𝐧
The official Django website is currently blocked due to firewalls, but it's likely that access will be restored in less than a week. Is there a way I can download Django and its dependencies in the meantime? What would you suggest?
The Inspired
I mean... pip already exists
cj
أم
Does anyone on here have experience building an entire enterprise in Django
I’m looking to build an LMS plus various apps
Charly
𝐄𝐫𝐟𝐚𝐧
Charly
So, pip is filter
Better to show us what issue you are having. In any case you may try to download it from GitHub
Charly
Shainkey
Hello Team
I am using django signal
I have to create entry in one table based on other table data saving so some of the entries created but some are missing using post signal. We are using django post signal
Doragonsureiyā
Shainkey
This is code base just for example
Cc
Hi team,
I'm developing a system in Django with DTL where there's a recursive relationship. I've worked with inline_formset but the problem here is that the client wants all the information to be saved when clicking save, even when many sub-children have been created. More specifically, I have a categories table and it has N subcategories and these can have N subcategories. Is there a way to optimize creation with dynamic forms?
Mousam
In my project(django DRF + vue.js)I have custom login which uses jwt authentication and I want to add google authentication but library like allauth uses session based login , can you guys suggest me some best practices? Also using jwt I am limiting the user (one user can login at most 2 device)
🏅♐Mark
Ibrohim
How to add parsed data to database in django
response = requests.get(url, params=params, headers=heade
data = response.json()
products = data.get('data', {}).get('products', [])
with transaction.atomic():
objs = []
for item in products:
objs.append(ProductModel(
articul=item['id'],
name=item.get('name', '')[:255],
price=item.get('priceU', 0) / 100, # пример: если цена в копейках
brand = item.get('brand'),
))
# удаляем старые записи (если нужно) или обновляем
ProductModel.objects.bulk_create(objs, ignore_conflicts=True)
Ibrohim
How to add parsed data to database in django
response = requests.get(url, params=params, headers=heade
data = response.json()
products = data.get('data', {}).get('products', [])
with transaction.atomic():
objs = []
for item in products:
objs.append(ProductModel(
articul=item['id'],
name=item.get('name', '')[:255],
price=item.get('priceU', 0) / 100, # пример: если цена в копейках
brand = item.get('brand'),
))
# удаляем старые записи (если нужно) или обновляем
ProductModel.objects.bulk_create(objs, ignore_conflicts=True)
It doesn’t save my data
Musa
Hey guys I need help I'm a beginner to Django, how can I insert images to Django template ? I try to put the image in static folder but the image is not showing up on the page
Doragonsureiyā
Musa
Am trying to insert image in home page but the is not showing up here is the structure of my static folder:
static/main/my_image.jgp
Here's the code
https://dpaste.com/EGHQ98REZ
𝐄𝐫𝐟𝐚𝐧
What is deefrent beetwin MVT & MVC in Django?
Maxim
What is deefrent beetwin MVT & MVC in Django?
https://docs.djangoproject.com/en/5.2/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names
𝐄𝐫𝐟𝐚𝐧
Recommend an extension for Django. My syntax errors are being ignored I want to be notified of even the smallest syntax issue. What do you suggest?
𝐄𝐫𝐟𝐚𝐧
𝐄𝐫𝐟𝐚𝐧
I don't know what should I do
Nana
Please is it possible to implement microservice with django
clouded
Khaled
clouded
🏅♐Mark
Harsh
Best resource to learn drf??
cj
cj
It is , any video source?
you asked for the best resource, so it's its official documentation
if you want video sources (which are not really the best way to learn any thing) go to youtube and search yourself
Harsh
Ibrohim
could we add swagger docs into dj-rest-auth views?
Mirco
SKG
~
Hi, I need a library to create a table in html format, I get data from another service in the form of list[dict], can you tell me if there is such a library that will format it into a table via bootstrap
DisboardTetta
clouded
Elyor
Hi everyone,
I’m planning to add JWT authentication to my Django + DRF project.
Which approach would you recommend:
Using the djangorestframework-simplejwt package,
Or building a custom JWT authentication system with custom views and URLs?
I’d appreciate any insights on best practices, pros/cons, and real-world experience. Thanks!
Mohammad Reza
Giovanny J.
Elyor
thanks for your suppors guys. I will use it
𝑵𝒐-𝑩𝒐𝒅𝒚 𝑵𝒐𝒔𝒆
Hi everyone,
Situation:
I have a model with over 4 million records, and an additional 5 million records in a related model connected via a foreign key. There's also a Market model, which is referenced as a foreign key in the Order model.
Problem:
I need to build APIs for analytics purposes, such as calculating MIN, MAX, and AVG prices, getting the TOP 5 products, average count of orders within a date range, etc.
Question:
What approaches, tools, or methods would you recommend for handling this efficiently?
Thanks in advance for your help!
DisboardTetta
Hi everyone,
Situation:
I have a model with over 4 million records, and an additional 5 million records in a related model connected via a foreign key. There's also a Market model, which is referenced as a foreign key in the Order model.
Problem:
I need to build APIs for analytics purposes, such as calculating MIN, MAX, and AVG prices, getting the TOP 5 products, average count of orders within a date range, etc.
Question:
What approaches, tools, or methods would you recommend for handling this efficiently?
Thanks in advance for your help!
use aggregate functions? For example - Max price
Select aggregate(st.field) as price
From parent_table pt
inner join slave_table st ON st.id = pt.field_id
order by price DESC
limit 1
If you need all, use CTE functions
𝑵𝒐-𝑩𝒐𝒅𝒚 𝑵𝒐𝒔𝒆
DisboardTetta
What is your problem? Is it that the query is taking too long to execute?
Charly