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.
Charly
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
Charly
Sergio
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
k0oda
ﹺ ﹺ
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?
Charly
Azizbek Xushnazarov
do you know English
Alex
James
Hi.
I need an help.
How to calculate loss and profit based on expenses in django?
Freddo_
James
Hamed
Hi how can i use django-filter and ajax in django anyone have github source or....???
Mirco
Mirco
Follow the documentation and that's all
Muhamedou
I mean I have the same question
I add my voice to yours 😂
Hamed
Mirco
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
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?????????????
Muhamedou
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
Fazil
Hadi
Andrey
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
Light
Parsa
Hello guys, should I know html or css before learning Django ? I have already learned Python .
Nastya
Light
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
Nastya
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
Light
Light
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
Light
Light
Mani
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
Sanjarbek
ꪉꫝꪖꪹᦋꪖꪜ
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?