Sergio
hello guys! I've just started to learn about Django. Could u explain to me when I should use render and when API.. I'm confused. Thank you in advanced
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
k0oda
Hey, I'm having a FOREIGN KEY constraint failed problem on adding Profile object into coauthors ManyToMany of Paper model If I directly send request on sqlite console it gives UNIQUE constraint failed Models code: https://pastebin.com/myqJYMfi
Sergio
depends on when you need a HTML view or a JSON endpoint
for example user information, email, cellphone number, name, and surname
Sergio
still depends on the thing you need
user can edit, add and observe
Charly
Sergio
😀
Charly
if you don't know the diference then use render as you don't know what's an API
Sergio
okay
Anonymous
Anyone have django eccomerce project source code
Charly
Anyone have django eccomerce project source code
https://github.com/search?q=django+ecomerce
Andres Vargas - zodman 🐍
Anyone have django eccomerce project source code
https://github.com/awesto/django-shop i have used it's very well pugglable app for ecommers ..
ﹺ ﹺ
I'm using Quasar with Vue and Django Rest Framework as the backend, I'm having a hard time integrating Paystack/stripe with the app. I've tried using the bootfil option after installing with NPM as there's no main.js file in Quasar, and also tried using CDN, it still isn't working... Who has any real solution to this please?
Azizbek Xushnazarov
do you know English
Alex
Anyone have django eccomerce project source code
https://djangopackages.org/grids/g/ecommerce/
James
Hi. I need an help. How to calculate loss and profit based on expenses in django?
Charly
Hi. I need an help. How to calculate loss and profit based on expenses in django?
That's not a Django related question, if you know the aritemethic way to do that then you can do it easily in python
 ‌‌‌‌Hamed
Hi how can i use django-filter and ajax in django anyone have github source or....???
Mirco
Hi how can i use django-filter and ajax in django anyone have github source or....???
You have just pass as query string the filters you create backend side
Mirco
Follow the documentation and that's all
 ‌‌‌‌Hamed
Follow the documentation and that's all
I now django filter i want my botton of front with ajax not botton form
Muhamedou
I mean I have the same question I add my voice to yours 😂
 ‌‌‌‌Hamed
I mean I have the same question I add my voice to yours 😂
I think if i use {% render_ fild fiters.color class="filterbotton" %} and then select form and wright ajax but i dont now have wright ajax Do you can ??
Andrey
Hi, can someone help me please. I have Django app, There I use some lib. All urls in this lib are ends with slash( / ) .I need to make that When I will go on this urls without slash in the end this urls steel working. APPEND_SLASH is not working here, becouse it's only redirect url -> url/
Muhamedou
Any help please https://stackoverflow.com/q/69126267/12955152
Doragonsureiyā
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Maxim
Any help please https://stackoverflow.com/q/69126267/12955152
why store the paths to the barcode images in the database? why not store the data that they encode? and make the path to the image easy to retrieve from the data for example, the name of the file corresponds to the code generate images as needed
Jo
Try reconnecting
Same code but Not every time.. when trying to get objects from db,
Jo
where are you getting it?
It's a working code.. but sometimes it's throwing the exception. I don't know what is the reason.
Chauhaan Tushar
Any good video resource for Django
Chauhaan Tushar
Chauhaan Tushar
Any good video resource for Django
i know basics of python numpy etc
Doragonsureiyā
Any good video resource for Django
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
 ‌‌‌‌Hamed
Oyatillo
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.postgresql' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'sqlite3' How can fix? Django: 3.2.7
Anonymous
guys i am new for json in django please tell me which tutorial i should learn from?????????????
Doragonsureiyā
guys i am new for json in django please tell me which tutorial i should learn from?????????????
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Dev__master
Hi team, have one doubt please clarify, May I know how to filter multiple fileds in django and here the fields are optional.it should return the data for the which are having input data
Mohammadreza
Hi. How I can run shell commands in Django (on Ubuntu) in parallel? I have a django project running on an Ubuntu machine which in the backend is running some shell commands with subprocess.run() and then the commands output will be redirect to a python script to convert the output to a PDF file and after building output, the pdf file will be downloadable for the user. If i have multiple users which are using this options, the pdf output will be the same for all users!!
Mohammadreza
For Example: User1 calls option A. User2 calls option B. script C will convert the output of A and B to seperate PDF files. it means every option can call the script C to convert its output to the PDF. the output of A and B for each user will be redirect to script C to build the pdf file. And if User1 and User2 execute the options at the same time, the output will be the same for both users and it's wrong output. It means the project is usable for only 1 user at the same time!
Mohammadreza
is there anyway to solve this problem in django? for example multiproccessing or something like that?
Bwaks
Hello guys am trying to implement django ajax like unlike with jquery but its not working dont know where the problem is
Mustafa
I am new to python django programming and I wanted to ask help. Please help me check my code why it does not show the href of an App. Please help me. Thanks in advance
Nastya
Hi, need help. I need optimize my code. I have three models - MenuItem, Category, Product. MenuItem for user interface, and here items can be the same. On page i must show all subcategory from menu and show all products from this category and subcategories. Get all category from menu -> get all products from all category Can someone help me? http://linkode.org/#Mqz1wyXYxkiNoryy3BJhf2
Light
I need five developer in django and react native Lets join hand together and build the largest payment method in the world. Let's build and run this dream together. Just message me
Parsa
Hello guys, should I know html or css before learning Django ? I have already learned Python .
Sanjarbek
https://dpaste.org/rKHr hello help pls
Mani
hey , I got a question Model A ——> Model B(many to many to A) ————-> Model C (many to many to B) ————-——->Model D (many to many to C) How can I get all items from D which are connected to an A D can be connected to a A or not, I need a queryset of D's which have an A. Any solution?
Light
May be it might be of help
Light
thanks
Check it because I can't be precise because I can't see all your Code I just have to do an unsure work here
Mani
Explain the difficulty
I'm not that good to modify orm myself, and I think there must be a solution with current django ORM
Mani
A.objects.filter(D=self.object.D).order_by('?') Or Simply Post.objects.filter(category=self.object.category).order_by('?')
A and D are not connected to each other, they are connected to such B and C, so do you mean I have to connect them as well, and then change the relation if B is changed ? (B is the connector here)
Mani
If I understand your question clearly B.objects.filter(A=self.object.A).order_by('?')
No something like this: Select * from A natural join B natural join C natural join D
Mirco
!meta
Doragonsureiyā
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
ꪉꫝꪖꪹᦋꪖꪜ
How to import view from another app?
Артем
hello, everyone. I need your help. I try to make model, that have one foreignkey field. And i want to choose a value of this field in admin panel and when i will choose it, my another two field show me this time attribute of model that have connection with foreignkey field. I hope you will understand me, i try it about 3 hours, but i dont know what start with.....
Артем
How can help with this question?