.....
Aju
how to modify the 'video' field ? please help
Hope your model contains a video field. Add a default value in that 'video' field
.....
it such a models okay? for example : video = models.FileField(upload_to='watch/' default) like this?
.....
but I still couldn't solve this :/
Gabriel
Hello guys, do you know if there is a possibility to use a custom user model in a specific schema and models like content type, admin entries, admin logs, etc in another schema and managed by Django?
D
Hi folks Is there any package for MFA that can be used with Django rest framework
Acquaintance
Hi All! I have "django.contrib.sessions" in INSTALLED_APPS, "django.contrib.messages.middleware.MessageMiddleware" in MIDDLEWARE SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies' in settings.py But I getting None in self.request.session.session_key in class based view What am I doing wrong? settings.py: https://dpaste.org/ieueU
Hi I did shop cart functionality a week ago I stored "favorites" and "cart-items" in a "local storage" of the browser (using small js code from gpt😅) And when the user loggins in, I have a view that takes a POST request and saving all the favorites/cart-items in the classes related to the customer-user It might help you
Charly
With out quotation it saves to public schema with.
No the quoatation is a different error
Charly
It should be 'master.language'
Gunjan
I have created a client management system. In that there is a client information form . And that information display on the home page of all the clients in a table.so there is a one column which has view,edit,delete button. Through this button we can view,delete,edit of that specific client information. So I want to add a new field in the view form which I get to click on view button.and that field is not available in my models.py. how can I add that field in the viewform by clicking on view button. And after that I want to generate pdf of that viewform with included that field .
AIDAR
Hello, I need your help. Used Django-ckeditor-5. Is there any function or code to remove photos (added with Ckeditor 5) from database when post is deleted?
Jai
Can I get any django video tutorials
matija
Can I get any django video tutorials
buy mark winterbottoms django course on udemy
Alex
I need help in my project where i use the Pretrained Ai model , i want to know how to handle multiple requests and serve them , if anyone can pls help me
Muhammed
Could I find any video tutorials for mastering ORM (Object-Relational Mapping)?
Charly
Could I find any video tutorials for mastering ORM (Object-Relational Mapping)?
If you want to master it then look at the documentation
Alex
Django already handles multiple requests as any web library, are you having specific issues?
Yes it handles those requests , but when i make a request to model it gets override
Alex
If my model is running and generating a response , and in that time i make another request, it starts executing new requests and leave before request
Alex
I just import the file and run it
Charly
I just import the file and run it
YEah of course the content of the file is relevant 🤦‍♂️
Bilal
hey guys i am working on commercial website for a company and they want to have control on their website like changing images and texts so thats why i need backend for it so now when he wants to change an image or a text then it should change the exact picture that he want and change it permanently and place it in its location i try to use django session for it to remeber the position and the image that he selected but it didnt work can you please help me??
D
Hi folks Is Django good for micro services or not
Alex
Not much
...
I want to start with Django and further I want to switch in data scientists any one suggest me road map or project
Koen de
I want to start with Django and further I want to switch in data scientists any one suggest me road map or project
Simply start with the tutorial from the Django website. When familiar then plan/take you next steps
...
Simply start with the tutorial from the Django website. When familiar then plan/take you next steps
Can you more clarify how much Django I know then I can my next step
clouded
Hi folks Is Django good for micro services or not
https://duckduckgo.com/?t=ffab&q=django+for+micro+services&ia=web
Никайтос
Hello! I have UserFormData model with field completed=False by default. When I set completed=True on UserFormData object and save it, there is a post_save signal that looks like this @receiver(post_save, sender=UserFormData) def history_start(sender, instance, created, **kwargs): """ Creates a VisitHistory record when the patient finishes filling the intake form. """ if instance.completed: create_visit_history( client=instance.visit.client, visit=instance.visit, text='Patient finished filling the intake form', value='finish_intake_form' ) update_case_status_checker.delay(instance.visit.id, CaseStatus.form_filled) the problem is in this row update_case_status_checker.delay(instance.visit.id, CaseStatus.form_filled) when i set completed=True on UserFormData object an save it, it doesn't change the status on the first time, but when I save it once again - that's when it changes the status, so It works only on the second try. I guess, post_save just doesn't see the changes on the first try, but I don't know how to fix it
Никайтос
Maybe you want to update status anyway
no, only on completed=True
< 𝕓𝕚𝕝𝕒𝕝 />
hello i need a course for build first project i found some courses but i don&#39;t like them please someone send me normal course 🙂
Doragonsureiyā
hello i need a course for build first project i found some courses but i don&#39;t like them please someone send me normal course 🙂
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Вячеслав
Hello. I have a strange problem with objects saving. I have a project with django 3.2, celery 5.12, redis and mysql as database. Also django-cacheops. I have a post_save signal that calls a celery task (task.delay()). This task takes object instance id as an argument. Inside of the task it gets an object by Objet.get(id=instance_id). The problem is that sometimes exception ObjectDoesNotExist appears after this query. How is that possible? It happens after post_save, so object must be saved already. I think of threads race, but I don&#39;t know how to check it or how to solve it in general. Also there are several troubles like this in project and I think they all are connected (some models are being saved 2-4 times sometimes, some numbers in models return to previous values after logging a change of value). Maybe you&#39;ve had something similar happen before?
Вячеслав
is there transactions in your code?
No. I wasn&#39;t sure how to implement it right. Do you think that hypothetically speaking it is possible that thread1 saved model, django called post_save and then thread2 was at the state where the model wasn&#39;t saved yet?
Qusay
No. I wasn&#39;t sure how to implement it right. Do you think that hypothetically speaking it is possible that thread1 saved model, django called post_save and then thread2 was at the state where the model wasn&#39;t saved yet?
I&#39;d recommend turning off cacheops for that app and seeing if that solves the issue then reimplement cahceops with that in mind if that doesn&#39;t work maybe try delaying the celery task or implement some retry logic
Qusay
Tell us how you solve it if you do!
Franky
D
Nope, for this Is better flask
Thanks but why not fastapi
Charly
Thanks but why not fastapi
The point is that Django may not be the best option
D
Yes
D
I am talking why flask not fastapi
Maxim
I am talking why flask not fastapi
only Django-related questions, please
KAKASHI
Hello folks Can you give a useful documentation or video about how to add react on Django
clouded
Hello folks Can you give a useful documentation or video about how to add react on Django
The general answer is to use Django rest framework. But it may be simpler to follow an up-to-date tutorial about it. You should be able to find some using a search engine. Make sure the versions of Django rest framework and react match your versions or you might have unpleasant surprises when following the tutorial. It does not harm to look into how react and the Django restframework work standalone to have a more pleasant and smoother experience.
mea
Hello folks Can you give a useful documentation or video about how to add react on Django
You definitely then don&#39;t understand these two things and how they work
mahyar
Hello friends, Have you ever used Google reCAPTCHA version 3 with Django Rest Framework (DRF)? If so, please send a link to any article, post, or video.
Sam
Hello folks Can you give a useful documentation or video about how to add react on Django
check in youtube: &quot;How to implement React with Django&quot;
Mugisho
Hello everyone, i need boostrap videos , how to handle boostrap. For example for creating dasboard and so one. I need to include HTML in templates&#39;s folder and CSS , JS in static folder with Django framework
...
What is rest framework
.
What is rest framework
A toolkit for building web apis with Django.
...
Thanx buddy
FORTUNATE
Hi guys, I&#39;m finding it difficult to insert background image to my django project. What could be the issue pls
Charly
Hi guys, I&#39;m finding it difficult to insert background image to my django project. What could be the issue pls
No idea, we don&#39;t know what you have done. And that&#39;s usually something of CSS not django
FORTUNATE
No idea, we don&#39;t know what you have done. And that&#39;s usually something of CSS not django
But the image is in my static file Static Images Background image
FORTUNATE
And the static file is register in django setting.py
Charly
But the image is in my static file Static Images Background image
yeah but we dont know what error you see in the console or what path ddid you sued
FORTUNATE
yeah but we dont know what error you see in the console or what path ddid you sued
I have done all that is ment to be done but the Image is not showing
Charly
I have done all that is ment to be done but the Image is not showing
yea but we don&#39;t know what exactly you did
FORTUNATE
Css Background-image: url(&#39;{%static &#39;images&#39;/logo.jpg&#39;%}): Folder arrangement Project folder Static folder Images folder Logo.jpg
FORTUNATE
Whats the error on the console?
I think console work for only javascript U need developer tools/inspect tools????
FORTUNATE
COnsole shows errors, even 404 errors
The error there are error relating to where I haven&#39;t add images of which I will add them later. The error showing are related to html error images.