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 ?
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
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
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 ?
If you are a JavaScript developer i mean if you have been on it for a long time go with react, if you are a python developer go with django, if you are intermediate or advanced in both use the COMBO of django-react or django-node for both backend and frontend you know what i mean.
Anonymous
Hey. Is there any way I can connect javascript with Django sqlite database?
Gil
Hey. Is there any way I can connect javascript with Django sqlite database?
Javascript to api, api to orm, orm to sqlite o anydb... This is the chain
Intrepid
When I enter pip3 search scrapy on ubantu
Intrepid
I am getting error
Intrepid
Ssle error
ɱσσɳ
When I enter pip3 search scrapy on ubantu
make a virtualenv & use it
yasmina
make a virtualenv & use it
Best practice Dockerize project
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
Jai
What should I do
Try installing OpenSSL
Gil
I think just hashing would be fine
Curiosity...What are you doing with this data?? 😂
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
Andrej
without authentication we couldnt have permissions right?
I think it is possible to set permissions for an Anonymous user (unauthenticated) as well
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
I guess this is somewhat related to django orm, my question is can this be one in 1 query?
Anonymous
JSONDecodeError
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.
Gil
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?
I think that sometimes we worry too much without letting work db. (my experience) Do you have evidence that the double query is slowing down the general behavior? Could be better deal with a full async design both frontend and backend...?
Anonymous
I think that sometimes we worry too much without letting work db. (my experience) Do you have evidence that the double query is slowing down the general behavior? Could be better deal with a full async design both frontend and backend...?
yeah maybe you are right, I don't have any evidence, the full async design is definitely a better deal but the information here I need on the initial load so I will implement two queries and check performance?
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?
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
Tukhtamurod
Dont extend built-in User model, just extend the user table
Means create another user model and in there use OneToOne relation to User model, then you can add as many custom fields as you wish
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
Tukhtamurod
I've tried this and tbh the extending with Baseusermanager made more sense than this
Yep. But it was the easiest and safest way, recommended way, you can move to email verification the new user model doesnt care
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