Root
Django: Create Submodel in Model - Stack Overflow https://stackoverflow.com/questions/12485733/django-create-submodel-in-model
VISHNU
https://hastebin.com/agoxosodiz.rb
VISHNU
Django admin autocompletion field if any one know please help how to do in custom form
Shruti
How to create pdf in django
Doragonsureiyā
How to create pdf in django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Doragonsureiyā
This function ..how it can be used to get the data in other function??
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
AJ
Guys, anyone knows when can we expect async orm?
Ghorz
Guys, anyone knows when can we expect async orm?
Well I used tortoise orm, it is async by default
Ghorz
But async can mess you up if you don't know how to use it
AJ
True but will get more exposure to it when it's part of Django. There are plans to add it into the django not sure when that's gonna happen. Because it's a difficult task for them as well.
Sai
When to use async
I think till this time django ORM is best
AJ
Django orm will have async soon
Matin
Hello I wrote a dynamic form with JQuery whose number of fields depends on the values defined in the field. For example, if someone is married, 10 more fields will be added to the form. I handled all this with JQuery but I do not know how to connect it to Django now And how to store information and what model to write.
Ghorz
Or dependent table
Ghorz
It is a table that relies on another table
Ghorz
If you have worked with shopping cart
Ghorz
You will understand better
Matin
There is a concept called child table
Can you introduce a YouTube video or an article?
Elijah
Please how do I create multiple forms on a page with a 'add new' button and submit it to the same url
𝕯aniel
guys somebody here use drf-yasg for documentation API?
Shivam
How to make Django Categories, Sub-categories, and sub-sub-categories. [With Source Code] 📘 Post Link:- https://lnkd.in/ePVbgQf 🌟 Github Repo:- https://lnkd.in/eeKSubA
The
Hey I want a internship Anyone can suggest me?
Doragonsureiyā
Hey I want a internship Anyone can suggest me?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
The
sravan
Is there any way to get the foreign key quaryset ..from a quaryset .. without for loop
rtg
Hi! Django desploy using Nginx, Gunicorn and Supervisor, show this error: 2021/06/27 13:31:26 [crit] 14039#14039: *24 connect() to unix:/webapps/retegienv/run/gunicorn.sock failed (2: No such file or directory) while connecting t o upstream, client: 194..., server: 167.., request: "POST / HTTP/1.1", upstream: "http://unix:/webapps/retegienv/run/gunicorn.sock:/", host: "167...".
rtg
My dropplet hasn't got "run/" directory and "gunicorn.sock" file.
AJ
Guys anyone has seen performance benifit by running sync django app on asgi server? Is it worth it?
AJ
It's a normal application that can run on asgi or wsgi
VISHNU
https://hastebin.com/agoxosodiz.rb Django admin autocompletion field if any one know please help how to do in custom form
Morteza
It's a normal application that can run on asgi or wsgi
do some search and understand the difference between thoose. then choose you'r way. quick example: if you want like a real chat application definitely you need to use asgi. because it is stands for asynchronous server gateway interface
AJ
No man, now django 3.2 comes with asgi and wsgi both by default you can use either for deployment
Morteza
No man, now django 3.2 comes with asgi and wsgi both by default you can use either for deployment
its is not about what django does for you it is about your application needs django run wsgi as default.
AJ
Runserver does
Anonymous
Ye concept kaha sikhne milega YouTube pe to nai milra
ຸ
Did they change api_view in DRF? I can't receive inputs the way I used to do it.
AV
Hi everyone! I need a help, i don't understand, how can i call a tag from the inherited template and extend him? I have the inherited template and the div tag inside, i want to add an extra content to that tag from the my new template. Thanks in advance!
AV
Use {% extends 'app/htmlFileName.html' %}
This is successful, but I have a necessrary tag inside the inherited template, and i want to extend that tag...
AV
Sorry? I couldn't understand what you are saying.
I have the inherited template, there was announced the div tag and i want to extend that tag in the my new template...
Vel
Developed an intranet application and wants to authenticate using active directory. Can someone help me with this?
AV
Do you want to add some content inside the div tags?
Yes! I think - i found a resolution, but i am not sure is this a good practice or not. I definied an extra block like {% block extra %}{% endblock extra %} in the div tag, the div tag was definied in the {%block body %}. I did {%block body %}{{ block.super }} {% endblock body % } in the new template and after that i just call the {% block extra %}new content {% endblock extra %}. By the developer console consediring i see that the new content was added successfully in the inherited div tag, i reboot the developer server, it works correct.
Pavel
hello. i have a problem. 1 subquery is loading twice qs.annotate( section=Subquery(EconomicActivities.objects.filter(code=OuterRef("oked")).values("section")[:1]), section_name=Subquery(EconomicActivitiesClassifier.objects.filter(section=OuterRef("section")).values("name")[:1]) ) The problem is in section_name. It refers to previously annotated field
Sai
Which will be the best for handling more concurrent requests. Gunicorn async or sync. Through documentation I didn't understood clearly.
Mohamad
how to do like button in django
Lots of ways For example Ajax call + (object name) many2many (like)
RIO
Hello guys
M***
How could be the design of database for multi-select list
M***
For an example. If I have 3 options for my habits. let us consider cooking, reading and playing. How to store these three habit in the options in a database. Can you help me to do this?
DD
You can design the choices field for that
Just add choices in the char fiels
Raja
anyone interested to work on this? https://github.com/WeblateOrg/weblate/issues/2752
Navin
I'm student of Durga Sir
https://youtube.com/playlist?list=PLd3UqWTnYXOnyr9zdvJvn__mKs_8MG7k7
Navin
There are live sessions going on… only 7000 INR
Navin
Demos links are posted above 👆
M***
Just add choices in the char fiels
But it can only store one value in the choice field.i need to store multiple values
Gobi Mahato
Lol
Rohan
Lol
Use offtopic for promotions and stuff and read the rules
Gobi Mahato
Ok
Gobi Mahato
But I don't wanted to promote.
Dark
Can someone show me how to use bootstrap offline
Rohan
But I don't wanted to promote.
Read the pinned post before posting, this is offtopic nonetheless