🏅♐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?
Pablo
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?
Ai is a good tool that helps speed up development and sometimes helps to fix bugs. However relying or becoming dependent on it isn’t so good. It takes away your ability to problem solve as a developer when you constantly offload tasks, issues or bugs to the AI. That’s like trading your problem solving skills for quick answers overtime. What happens when ChatGPT or favourite Ai chat bot goes down. Will it mean you will not be able to do any work? Using these tools isn’t bad at all. What’s important is finding a balance and not always relying on them. Besides, the responses they give are not always right
Ayush
Anyone can suggest 2 or 3 easy django projects for resume (beginning level)...???
Charly
Anyone can suggest 2 or 3 easy django projects for resume (beginning level)...???
Beginner projects are not relevant for resume, but anyways: https://www.geeksforgeeks.org/top-django-projects-for-beginners/ https://bigprogrammer.medium.com/100-django-projects-for-beginners-to-boost-your-django-learning-eda0e12af7e3 https://www.interviewbit.com/blog/django-projects/
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
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?
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?
Alireza
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?
i suggest amqpstorm i used it in django and other stacks its easy to use in 4 years of experience with rabbitmq and python i used amqpstorm more than pika pika can sometimes be a problem like in retries and reconnections and api of pika is more complex
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?
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?
Doragonsureiyā
How can I access localStorage in Express backend? Is it possible to store local storage from the backend?
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Yathish
𝐄𝐫𝐟𝐚𝐧
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
أم
Does anyone on here have experience building an entire enterprise in Django I’m looking to build an LMS plus various apps
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
Saman
Better to show us what issue you are having. In any case you may try to download it from GitHub
He said that pypi.org got banned by Iran government, so he can't install packages using pip.
Saman
Where he said Iran?
I know that because of his Persian name.
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
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?
Doragonsureiyā
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
You have not managed to describe your issue properly. It is likely that you will not receive an answer, as people do not understand your request. Please take the time to properly phrase your issue, so that we understand and will be able to help.
The Inspired
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
straight from django docs (this group doesn't allow pics, dammnit) Signals give the appearance of loose coupling, but they can quickly lead to code that is hard to understand, adjust and debug. Where possible you should opt for directly calling the handling code, rather than dispatching via a signal.
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)
Mousam
Django providing all auth for Google authentication
Yes, but it by default uses session based authentication
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)
Doragonsureiyā
It doesn’t save my data
Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
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
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?
clouded
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?
Enable debugging (DEBUG) in settings.py. Syntax errors are never ignored. Python code can only run if at least the syntax is correct. You might want to check your development environment, too. It is supposed to show syntax errors.
𝐄𝐫𝐟𝐚𝐧
I don't know what should I do
clouded
Its True, But the bugs are ignored.
If there is something to report, setting DEBUG in settings.py to True will report it.
Nana
Please is it possible to implement microservice with django
Khaled
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?
this is a python(or any interpreted language in general) issue more than Django issue the best thing you can do to avoid such problems to have a good test coverage on your code
clouded
Harsh
Best resource to learn drf??
cj
Best resource to learn drf??
its official documentation
Harsh
its official documentation
It is , any video source?
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
Ibrohim
could we add swagger docs into dj-rest-auth views?
~
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
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
Dude, i Google 2 second and find "pandas", also you can use script from https://stackoverflow.com/questions/50729702/convert-dict-to-html-table
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!
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
What is your problem? Is it that the query is taking too long to execute?