Sir
Ty...
Sayidbek
How to make a video field?
Google is only friend that helps u
Не выходи из комнаты.
Hi. Can help with optimize recursive queries? https://stackoverflow.com/questions/71377575/optimization-queries-with-foreign-key-to-self-model
Fan / Ac
How to make a video field?
Read all the answer https://stackoverflow.com/questions/3116637/django-db-images-video
Fan / Ac
you can use filefield to store video name and make a folder to save video in file system
harsh
can anyone help that how we can use dynamic table in django models.dynamic(my table is changing on the basis of month and year). so if you have any tutorials or anything please share me.
Enes
Anyone help me to make django assignment
https://youtu.be/zUl-Tf-UEzw
Enes
Anyone help me to make django assignment
Check LinkedIn Learning platform. You will find out
Alex
hi there, I have some questions about DRF, can anybody help me?
Doragonsureiyā
hi there, I have some questions about DRF, can anybody help me?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Alex
I just think DRF != django, ok =) I need to implement view like that class modelB: ... class modelA: modelB = FK(modelB) api response /api/modelB { id: 1 ... modelAfields: { fieldA1: value fieldA2: value anotherModelField: value } } how can I do that?
Alex
can you share exact link please?
Doragonsureiyā
can you share exact link please?
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Fan / Ac
Can save videos and images in the same directory?
yes thats your choice better use different folder to organize
Д
Can save videos and images in the same directory?
save it all into MongoDB. better use one key-value pair for everything.
Sir
Understood! Thx you!
Д
Understood! Thx you!
I was kidding...
♤_Cyber_Security _♤
Hello everyone. How to open admin panel in Django
Dae
has anyone succesfully used django with mssql i ve been trying to and cant get it right
♤_Cyber_Security _♤
Fan / Ac
Fan / Ac
what if they follow what you said
bala
Can anyone kindly share me the code for pop up message... The submit is ready... When I click the submit button.. There should be pop up message to show "it added successfully"... So I want Html code for pop up
bala
The submit button is ready*
Doragonsureiyā
calculated risk
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
Anonymous
I have problem
Anonymous
In import urls in django
Anonymous
Anyone help pls
Doragonsureiyā
Anyone help pls
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Anonymous
Ok
Anonymous
I can explain on call if anyone free help me
Doragonsureiyā
I can explain on call if anyone free help me
Can i send you a private message? No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Vivek
Is there anyone who help me out to create the .exe file from django project
Pythonero
I have problem
What's the problem?
ㅤ
Use message framework in Django to do so
And write the message inside the view.
Kalandhar
What's the problem?
I have one doubt
Kalandhar
I have created a User model with username , firstname , lastname , pass , repass , email , reemail , phone , rephone , gender... But After registering User model in authentication and authorization it was show only username , firstname , lastname , password Why..?
Kalandhar
Not showing all fields
Doragonsureiyā
Is there anyone who help me out to create the .exe file from django project
So, people, listen... if you're writing Python code but at the end you're coming to ask how to compile it, how to hide the code, how to make a single executable (make a .exe file 🙄), or things like those, it means you don't know what you're doing, because that's not how Python works, that's not the way you should run your Python scripts, if you wanna do those things then change your programming language. Yes, there are tools that make Python code to be one executable (compile it, convert to .exe, call it whatever you want) but, if you use them, it means you really know what you're doing and you won't be here asking how to achieve that task, otherwise just use other programming language. If you're using Python to write code, you should know how it works and how to run your scripts without bloating them with unnecessary stuff.
(⌐■-■)
Whr i have to mention it.?
Settings.py file AUTH_USER_MODEL = "appname.UserModel"
(⌐■-■)
Does it matter...?
Kalandhar
Does it matter...?
What is Post Model.?
(⌐■-■)
https://youtu.be/SFarxlTzVX4
.
I'm creating an form using modelForm and my model (Blog) has a foreign key to User. I want to set the User to the current logged in User , when he creates a Blog . How can i do this?
(⌐■-■)
https://youtu.be/SFarxlTzVX4
Go through this video
...
hello, please who could help me? i have an app with html/css files and a database, how do I insert data from the database using django?? do I have to necessarily introduce python in my html codes?
Doragonsureiyā
hello, please who could help me? i have an app with html/css files and a database, how do I insert data from the database using django?? do I have to necessarily introduce python in my html codes?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
👑 Dharmzeey
Please exclude (excluded fields) on my createview for a particular model is still rendered
👑 Dharmzeey
How can I go about it, I have checked the internet, I found no solution
Tohid
How do I filter my articles like this? /Test?category=test
Doragonsureiyā
How do I filter my articles like this? /Test?category=test
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Abdullah
Who here use Django-ninja
Doragonsureiyā
Who here use Django-ninja
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
elf
Has anyone had a case where they wanted to set a variable in a with statement to be a list? Django template can't seem to parse the {% with to_skip=[] %} statement. I'm guessing only strings and numbers can be set using {% with %}. I can't find anything on the docs on it. Would be glad to get a help around this that doesn't involve passing the variable as a context through the view
Grace
I have a model for subjects, which has a charfield for sub, then i have another model for Teachers which has subjects as a ForeignKey of the subjects model and a related_name="subjs", How do i count the number of teachers in a particular subject
Arpit
you can run
(⌐■-■)
Try searching on YouTube
Arpit
queryset = (Teachers.objects.values('subjs').annotate(total=Count('teacher'))