Charan
I'll share the required code details via personal chat
^o^
Previously I was using sqllite3 as my Django app's database. Now I changed to MS SQL...now I can notice that some ORM queries are not working. (eg: query with .count() and . exist() functions ). How to replace this...
Timur
^o^
No
Timur
Do this
^o^
Ok
^o^
I have imported Sum, Count etc from django.db.models. but this is different right?...count() and exist()...from where I should important this..I am confused
Timur
Timur
I asked my friend, he said that using ORM queries doesn’t work sometimes
Timur
I don’t know, I am using Sqllite or Prostgre
^o^
Ok.. thanks bro
Anonymous
hi , what is standard and norm :
1. handle the errors based on status code in frontend
2. handle the errors based on the message that I send from backend
if first one is true :
how to handle the for example: 400 error for multiple fields of form in frontend.
the frontend developer start a fight with me because of this😐
âshîsh
From Django you can use python as backend and html CSS as front end
Musarat
yes but i dont know how i link my html file with python
Musarat
can you plz help me
Shubhendra
😇ANGELO™️🎧
Musarat
i know but when i link it with python
Musarat
it gives an error
Anonymous
Hey, anyone done socila login using graphql in Django. I'm trying but it's not wokring.
Shubhendra
Doragonsureiyā
it gives an error
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
âshîsh
can you plz help me
Start with learning Django. Go with offical documents. And Lots of free videos available on internet.
^o^
Anyone have experience in working with Django + MS SQL server....how to fix the orm query not supporting issue
Anonymous
Can anyone help me? To learn Django
Anonymous
Any website or any pdfs ?
Doragonsureiyā
Can anyone help me? To learn Django
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Алексей
Hello. Who can help? How to make parameters of an online store product in Django? Which is better to use json fields or eav or there are other options. And how to implement changes made to the user in the cart?
Jerome
Any website or any pdfs ?
also
https://simpleisbetterthancomplex.com/series/2017/09/04/a-complete-beginners-guide-to-django-part-1.html
https://learndjango.com/
Fady samy
Guys, I need an example of api work that brings data randomly.
Sadra
Guys, I need an example of api work that brings data randomly.
Not a big deal buddy. In every single tables you create, you need to have at least one unique field. In the Django-cases, you have IDs. They are auto increment which means they have a range between 1 to X.
A few records might get dropped from the database, so that we won't be able to access them.
In your example, the simplest way to do that is to create a task that gets the highest ID number and chooses a random number between 1 to HIGHTES_ID_NUM.
Note that this approach might cause soms additional processes. (eventually happens when the data is missing or a loop has to get repeated every single time.)
The best way is to use random.sample method.
items = books.objects.all()
item = random.sample(items, 1)
Hope you find it useful. ❤️
Sadra
Check out random.choice()
Fady samy
Thank you so much, my friend.
Fady samy
I'll try and tell you the result.
Sadra
👍❤️
Ariel
Hello everyone. What must I do in order to create an customizef user and an customized superUser to extend AbstractUser?
Ariel
Anonymous
How can I run a celery task without celery???
Anonymous
My celery stopped working in production, I restarted the service with systemctl
Now the service is active, but the tasks are not beeing executed, I have no idea what to do about it
Anonymous
Celery sucks, the service appears to be UP but in fact the tasks are not beeing executed
Anonymous
How can I run a celery task without celery???
This is making unfaithful reports in production on a critical service... I need a workaround, so I am thinking about creating CRON jobs to execute the tasks.py files, but i doest know how to do it
Anonymous
🤕
antonov
Hello! How do you find django unused code e.g. views? I have tried to use vulture, but it doesn't show unused views
Fady samy
Remsha'`
Is there a ready-made working solution for using a dynamic array field in inline?
Anonymous
Hi all. I have API'S of my current project. I wanna use that Api for another project.
Can any one suggest me how to create the api for external usage.(I mean an Url)
Lannoy
Anonymous
Am sorry. My requirement is to use that Api for multiple projects.
Anonymous
Kindly suggest me ..
Lannoy
Anonymous
I mean. I can access the data from one project to another
Lannoy
Anonymous
For that I need to create API'S to external usage
Anonymous
Lannoy
Yes..
i think you can connect on the same db server, about app, i think you can just add name your app to installed apps
Anonymous
Thank you for your reply.
But we have 10 django application.
That application has to get the data from one to each other.
So for that I wanna create an external api's
Sean
one backend (drf) + multiple frontend ?
Lannoy
Anonymous
Thank you.
Please tell me how to host django api for external usage
ADI
Hey can anyone help how to edit pdf like i have to replace a string from different string . please help me
ADI
Using python
Rushabh
Hey anyone know how to add watermark in django
Anonymous
Using python
https://www.google.com/url?sa=t&source=web&rct=j&url=https://realpython.com/pdf-python/&ved=2ahUKEwjkv_i4wpjvAhVQxTgGHUVaBE4QFjABegQIEhAK&usg=AOvVaw0JtHS2S9TfOBTiqbP7DQAj
ADI
Anonymous
Oh kk
Ds
When I try to save information I am getting integrity error. Can anyone explain why I am getting this..
âshîsh
Django session working fine with Chrome but not getting output when using Firefox.
Rajesh Karthik
Can anyone help me on how to give the path name in setting
Rajesh Karthik
I'm not getting the path name for 3.1 version
Ds
Anonymous
Jay
Hey guys. Is there a way I could know whenever django server crashes. In my django app, I have an endpoint that always listens for data from an API. The issue is that the API continuously POST data to the endpoint until it gets a 200 response back. This is always provided by my app unless it encounters an error where the return HttpResponse(status=200) is never reached. I was thinking maybe I Would always post an 200 back even if the app encounters an error to prevent the data from continuously flowing in and raising errors on my app. Is there a better way of dealing with this.
Prince
Shubhendra
I am trying to fetch JSON data from my DJango app which is using rest_api framework in React js... but fetch function giving error "Invalid type: Unable to fetch" and it's working for any other url.
But not for my DJango API
Ds
Midhun
How to solve NoReverseMatch error in django
Mirco