vijay
Why? Seriously... Why? 🤔
Oracle databases are always used for high performance demanding workload while MySQL and progress are used for enterprising applications which deal with writing complex query
Muflone
so oracle and postgres db are not capable of running complex queries?
vijay
It's not like that
vijay
Oracle best use in reading operation and MySQL and possess best use in writing operation
vijay
Postgres *
Muflone
it seems a fantasy novel
vijay
Bank, market data(share market )... Etc use Oracle data base base there are more reading transaction than writing
vijay
No bro it's called system and database design
Muflone
No bro it's called system and database design
no at all, these are not the reasons to choose oracle or mysql or postgres
vijay
Yes this is exactly reason
Muflone
no, at all
vijay
Are u familiar with any back office software ?
Muflone
yes, but the question is not relevant at all
vijay
Yes the question is directly relevant
vijay
He is asking which database is best
Charly
Yes the question is directly relevant
No its not. Cut your offtopic, NOW
vijay
Depends on daily transaction limits
Muflone
let's cut this now, it's meaningless and based on false arguments
Charly
He is asking which database is best
For django is postgres, just because Django developers preffer it so ithas more features.
Charly
Depends on daily transaction limits
No one that uses django will face issues with postgress or mysql.
vijay
Issue is not here about django and all
vijay
Issue is best use of data base
vijay
If ur project is smaller than use sqlite3
Charly
Issue is not here about django and all
This group is for django exclusively.
Anonymous
which website best and low cost for django hosting
Anonymous
Anonymous
👍
Thanks
Martin
Guys I coded a simple app using django and mongodb with djongo as the ORM backend One of my models has an embedded filed (I have a Country and a Brand collection. each brand has a country embedded) When I want to add new Brand in django admin panel, I get the error " Value: China must be an instance of <class:dict>" Can anyone help me
Martin
Show the whole traceback using http://hastebin.com
There isn't such traceback unfortuntely All I get is a form error . Consider this form Name: Xiaomi Country: China When I click SAVE in django admin interface I get the error: Value: China must be an instance of <class 'dict'>
Targoon
make it choice field in your model instance, not in form
Martin
maybe its a choice field but you pass the dataas string field, so its not key-value type
It's not a choice field It is an embedded field from djongo.models Although in the django admin form it has a text input
Targoon
how can i use DRF, to retrieve some data from front end, in a register form, and store them in data base?
Targoon
can i get the data in json or jquery format?
Jitxs
i want to store chat history in database and then render it all again like a real chatting app can anyone guide me how i can do this in django i'm beginner
Charly
i want to store chat history in database and then render it all again like a real chatting app can anyone guide me how i can do this in django i'm beginner
You need, at least, read the the Django tutorial. Whenever you want to store something in the database you need to create a model.
Jitxs
i had tried and i know orm little bit but i don't know how to render old chat on same page i think i have some problem with javascript or not sure but can anyone provide a chatting app code/tutorial/or article
Jitxs
the main problem in my code was that when i chat with llm(bot) and hit enter the page reload the bot run in background and send response but then i can't render the response on same page
Jitxs
then how to update the response on same page ? sorry i don't understand how, i need to get the text i write to backend for bot
Jitxs
oh, okay thankyou!
agwayne
Did u run python manage.py migrate ?
agwayne
Or have u defined a custom user model
Kridha Singh
I going to work in facial recognition system for transaction or OTP anyone can help me with this project
Shailender
I created a user using Django inbuilt class now I have to use its username to show the which is posted by that user what should I do?
Maq
hello everyone, my model is not displayed in admin, can someone help? I’m kinda new to django and have to deal with this project
Maq
4 models are registered, but only 2(BotPhrase and Achievement) are displayed in admin
Ur Friend
Page not found (404) No Post matches the given query. Request Method: GET Request URL: http://127.0.0.1:8000/blog/ Raised by: blog.views.My_post Using the URLconf defined in tourBlog.urls, Django tried these URL patterns, in this order: admin/ [name='home'] summernote/ <slug:slug>/ [name='post'] The current path, blog/, matched the last one.
Ur Friend
facing this issue
Ms
Hi guyz what's the deference between passing an context to the serializers or use a model methods instead. For examle with get object methods u call get queryset and get the full query set and desired obj as well. But now you want to get all related obj too . My question is . Which way is better in django to handle query and logical. Wher is the best places for these things
Ms
Eventually, do any one have a good example or git repo for best design pattern and .... in django
Ms
Im quite confused
Caleb
Eventually, do any one have a good example or git repo for best design pattern and .... in django
usually the docs is the best example of good design patterns as it is very well written: https://docs.djangoproject.com/en/4.2/ queries: https://docs.djangoproject.com/en/4.2/topics/db/queries/ queryset API(i think you want this): https://docs.djangoproject.com/en/4.2/ref/models/querysets/
Ms
Thanks mate
🎣
What do you guys think about the future of Django developerers?
🎣
I think it's great
But why it is so unknown in the market compared to JS frameworks?
🗽
But why it is so unknown in the market compared to JS frameworks?
Do u think common things have great future? Secondly, js frameworks mostly for frontend Django is for backend why to compare js frameworks and Django?
Caleb
But why it is so unknown in the market compared to JS frameworks?
Js frameworks specially backend js frameworks are used for medium sized and small projects(most of the time), Django is used by all, even f500 companies use Django, so it's not that Django is unknown but because Django is much more advanced and mature, most of the time people don't use Django for small projects because Django's benefits are expressed more on medium sized and big projects.
Alian
Hi I have a backend app with django And a frontend app with next js So i was set token jwt into the cookie in django and its ok when backend and frontend in production and deploy on server but But when backend on server and frontend run in localhost cookie not set I try change domain - samesite - secure - … to many different shapes but not work
Gonzalo
Hello, what do you think about wagtail
Gonzalo
https://github.com/magoreal4/Skeleton-Wagtail
Masoud
hi i have a field images in product model , now i want this field get taking photos ,it means multiple no singel ! please healp me for make it , tnx
Shahzodbek
hi i have a field images in product model , now i want this field get taking photos ,it means multiple no singel ! please healp me for make it , tnx
Create ProductImage model, and in your Product model you should connect these with ManytoMany field
Ashok kumar
Hi I want to send email through django but in google manage account security doesn't has less secure app access how can set googleanage account to send email in django please respond anyone for this
Maxim
Hello, what do you think about wagtail
frontend has nothing to do with Django
Karan
Hi all, i have a model named student in my django project. I have created 2 api using drf , first to get all students and second to create a new student in db. Now I want to generate a sample resume in pdf format whenever I create a new student entry in db. How can I achieve it?
Karan
I am also using post_save signal to notify my backend whenever I create a new student entry in database, can I use the pdf generation logic in Post_save method