TI Mercado Industrial
Hello! How do you recommend me for saving sorting order of my product images? We're using Django Rest Framework and a ManyToMany relation between the Product and File ( file is used for the images of products). We're already using a through model (ProductAndFile) to add a sorting_order field. It's working but the PostgreSQL database is getting too many queries, most of them are repeated. Thanks
David H
TI Mercado Industrial
Rohit
Hello All, can anyone please send me Splitwise code using Django?
Rohit
Thanks in advance
Deise Freire
Hello please could someone from the group help me. What it means?
"GET / HTTP/1.1" 401 58
"GET / HTTP/1.1" 401 4999
Deise Freire
This here appears in red for me, I think that's why my project doesn't run
"GET / HTTP/1.1" 401 58
"GET / HTTP/1.1" 401 4999
Charly
Charly
Deise Freire
Charly
Deise Freire
I don't know where the error is, I've tried everything. I know it's an http request error but I don't know how to fix it
Charly
Charly
Deise Freire
http request error 401
Charly
Deise Freire
While doing what?
It was supposed to show a login and registration screen like this
https://zealous-joliot-be008b.netlify.app/
Charly
While accessing to what page?
Charly
You seem to be using ApiViewSet so it can show login pages
Charly
it will show just the API auth error
Charly
And as it ant API there is no login page, you need to provide the credentials in the header
Deise Freire
The login page is under users "usuários" in Portuguese
Charly
Charly
Not pages at all
Yameen
While performing celery beat I was getting the following error i tried to restart redis and celery beat but that didn't work :
" Error beat: Connection error: error-3 connecting to redis-master:6379. Temporary failure in name resolution."
Can anyone help?
Shainkey
Hello team
We need to predict number of malaria cases based on rainfall and temperature. Which model or lib is best suit for this case.
Shainkey
Is any idea from anyone side
Shainkey
Dmitriy
suppose I have phones in my db in different formats, is it possible to search substring in them?
+1-541-754-3010
+15417543010
if searching for '430' both should be returned.
I've seen that it's possible to use regex in django filter but cannot come up with an expression.
Anyone has experience with that kind of stuff?
Shaik
Is anyone have Django assignments
Doragonsureiyā
AZ
Shaik
Doragonsureiyā
Please help me
No one can help you until you explain your difficulties.
Azizbek Xushnazarov
Soumya
Can anyone send a link to test dijango API with postman..??
Mohammad
Hello guys
What is the best way for creating register/login form?
Yameen
Doragonsureiyā
• Use a backtick (`) on both ends of your single line:
print("hello world")
• For more lines, use three backticks (```) before the first line, and after the last:
def hello(name):
print(f"hello {name}")
• You can also select text when typing, and select markdown formatting.
Ivan
Hi, I get this message in the form:
<li>
::marker
"The two password fields didn't match."
</li>
Can you tell me how I can make sure that these messages do not appear?
Shubham k
Can anyone help me on Django task?
Sunil
How can I manage my project development and production settings?
.
Mirco
How can I manage my project development and production settings?
You have DJANGO_SETTINGS_MODULE env var that let Django knows which settings to run
So you have 2 most common ways:
1. Create a base settings and then dev, staging, prod
2. Or use the "new" Django configurations way from Jazzband https://django-configurations.readthedocs.io/en/stable/
Sunil
What is use of security key In setting file?
Mirco
Yameen
klaus
Hello
I need your help.
how to serve media files in production on a shared server?
ꜱᴀᴇᴇᴅ
Hello,
is it possible to establish a one-to-one relationship between two tables in Django without using OneToOneField() in one of the tables? I have to delete the data from one of the tables and re-enter it, and this creates a problem
Shugaba
You could try the foreign key and make it unique. ForeignKey(unique=True).
However, I would suggest that you check the on_delete parameter of the OneToOneField().
Maxim
ꜱᴀᴇᴇᴅ
Rohit
Hi guys, I'm trying to run the code but I'm facing the error , can anyone try and please help me out to fix the issue
Shugaba
Rajesh
Shugaba
And can provide more info about the behavior when you delete a record.
mehrdad
hi is there any one who can help me with comment system of my blog site( im learning django with a book called django 3 by example )
Doragonsureiyā
𝙰𝚜𝚑𝚠𝚒𝚗
If you are hosting staticfiles in same place where you hosting your django app, install whitenoise middleware
Krunal
In django rest api swagger post apis are not getting an opetion for body request. I have used APIVIEW. Is their any way to do general setting which can auto apply on every post api?
talha
do I have to use makemigrations command first in my local development and then one again in the production server? this is what I understood from the documention but I am not sure, isn't this going to create conflicts? here is the quote "You should be making them once on your development machine and then running the same migrations on your colleagues’ machines, your staging machines, and eventually your production machines"
Patrick
talha
Patrick
no but this is what everyone do...
Maybe people exclude migrations from gitignore...
But it is friendly when you're testing on local... something went wrong and you cleared all migrations & created new one
Patrick
Its all upto you...
No need of makemmigrations if its already in your pull
just migrate and you're ready to go
talha
Patrick
That's why I prefer including migrations on gitignore...
Every time I push, I'll make sure it's working on local and don't get any migrations error...
On server I will have all migration records.
talha
Mohammad
Guys can someone help me with the review part of the size?
I wanna know that which fields should i use
Ivan
Hi guys, I need some help with form, how I can edit <ul class="errorlist">?
Jerome
Jerome
ford
Ihechukwu
Hi
Any Django bootcamp??
Or any Django internship available?
Doragonsureiyā