Roman
Roman
Mehmet
I hope so.😊
Pandu
😂
PREETHAM
Guys i need some help I'm struck between choosing backend for my final sem clg project , which one is best with react ,django r Node js ?
Anonymous
Muflone
I bet everyone here will tell you Django
Anonymous
yeah.. if ur strong in python, go for django.. if ur strong in js, go for node..
PREETHAM
Heinek I'm asking which one suites with react
Anonymous
me personally, i've used django and react. so i would use that
PREETHAM
Bcz most ppl prefer react Django combo idk why
PREETHAM
Ok tnqq
Anonymous
django is an awesome framework on its own.. and react is super fast... so combining both, u do the math
Anonymous
how to add cart using django package
Nagadeep Sharma
Guys how to iterate rows in table (html)
Yusniel
thanks, let me check it out
I created a django app for that. Maybe it could be useful for you https://pypi.org/project/django-notifications-rest/0.0.1/
I
Hello everyone
Help me in this error
I
the mysqlclient installation shows this error
Error: mysqlclient is not a supported wheel on this platform.
Muflone
what platform is?
I
Windows
I
I am trying to install it on Windows 64bit
SmQ
Anonymous
Hey geeks. Last night i had 1 problem when i goto the url /admin that is in my project level urls.py but when i browse to this url it was redirecting me to the sites homepage. I fixed it by hardcoding the admin url like /admin/myname then it worked after a while i changed that to /admin it worked could tell me what the error was guys? I have hard refreshed my browser and deleted all sessions and cookies.
Anonymous
Hey. Is there any way I can connect javascript with Django sqlite database?
Gil
Intrepid
When I enter pip3 search scrapy on ubantu
Intrepid
I am getting error
Intrepid
Ssle error
ɱσσɳ
Jai
Error installing packages using pip in anaconda prompt (TLS/SSL error) - Stack Overflow
https://stackoverflow.com/questions/61709380/error-installing-packages-using-pip-in-anaconda-prompt-tls-ssl-error
Intrepid
ssle error (can't connect to HTTPS URL because the ssl module is not available)
Intrepid
What should I do
Intrepid
Jai
(USMON)$
Cpt.Zoba
While working with openweathermap API I am getting 401 on Browser and if I check logs it says "POST " 500 ... Is it api error or something else? Am I missing something
Anonymous
Suppose I have two tables say A and B, these are both configuration tables and I want to fetch all records from them say A.objects.all() and B.objects.all(), the records in them are totally different so is it possible to get them by only hitting the database once?
Anonymous
Anonymous
I guess this is somewhat related to django orm, my question is can this be one in 1 query?
Mehmet
Anonymous
JSONDecodeError
Mehmet
Anonymous
Why do you need this kind of behavior?
because I want to reduce DB calls, I wanted something like full joins in SQL (SELECT t1.*, t2.* FROM t1, t2), I think it is better to have 1 query than 2, what do you say?
Mehmet
Your given sample query creates a cross join and transfers more data in every situation. There won't be a significant performance cost unless you perform n+1 errored query.
Mehmet
You are trying to escape away from 2 queries but taking risk of joining cost.
Mehmet
If that performance issue is a real performance issue in production I would give an eye on query caching option. Django seperates even your A.objects.all() query because of its lazy execution nature.
Mehmet
It first queries on first 21 samples and if you go on iterating it goes on by creating new query for rest.
Roman
Anonymous
Arthur
having a issue on storing emojis on a mysql using the django admin. it doesnt throw a error, but everytime i change the object and save it on a script, or I just print the content on the terminal it doesnt show the emoji just a "?". Any ideas ?
Mehmet
You should do research on utf8mb4 encoding while connecting db.
Arthur
already set it on options
Arthur
and also changed the charset (to utf8mb4) and collate (to utf8mb4_general_ci) on each table as well
Mehmet
What happens when you render on html?
Arthur
it renders properly, the issue is when printing on the terminal, or saving the object after it was properly stored on django admin, If a .save() afterwards the emoji changes to a interrogation point (?)
Arthur
when i save it, and try to render it again, it became a "?" on html as well
Arthur
by saving I mean object.save()
Arthur
What happens when you render on html?
Sorry dude, just figure out. I'm feeling stupid now.
I forget I changed the charset on production (that I was using to save the message) and didnt changed locally the charset option
Sorry everyone
Arthur
thanks
Siddhartha
Why is making a custom user model such a complicated process?
Tukhtamurod
Tukhtamurod
Siddhartha
Extending the baseusermanager, which specifies that the user model should be the initial migration
Siddhartha
Do you have some tutorials which can make it easy to understand what's happening?
Tukhtamurod
Siddhartha
But with rest API I wanted to change it to email as default sign in method, instead of username
And custom JWT instead of session
Siddhartha
Shubham
Hello guys may I know how to over come this
Shubham
https://dpaste.org/3VFr
Shubham
django.db.utils.IntegrityError: could not create unique index "menu_of_the_day_menuoftheday_meal_type_id_days_3769a4e7_uniq"
DETAIL: Key (meal_type_id, days)=(1, 1) is duplicated.
Shubham
I have deleted migrations folder and problems seems to gone
Anonymous
Hello friends! I will develop an eCommerce with Django. There some app that manage the products models with dynamic attributes for different products ? I