Alexey
Can you send here(your model)?
class Clients(models.Model):
class Meta:
verbose_name = 'Список клиентов'
verbose_name_plural = 'Список клиентов'
Name = models.CharField(max_length=50, verbose_name="Имя клиента")
Phone = models.CharField(max_length=50, verbose_name="Телефон клиента")
Address = models.CharField(max_length=50, verbose_name="Адрес клиента")
Email = models.CharField(max_length=50, verbose_name="Email клиента")
Conflict = models.BooleanField(verbose_name="Конфликтный клиент", default=False)
def __str__(self):
return f"{self.Name} - {self.Phone}"
FOR YOU
FOR YOU
Alexey
SantiU
Do any of you host django on cpanel? any recommendations?
Doragonsureiyā
Shiva
Hi everyone, need urgent help.
I am trying to get searched key word from api endpoint, and search products from the database using that keyword.
Please help me
Shiva
Without for and that to fro POST post reqeat
Shiva
anyone please
Tobi
Hello everyone. I've been learning Django framework for some time now and I've finally been able to create a blog.
It'll be very helpful if anyone can help me go through it and give me some feedback.
github.com/tobidada001
Morteza
Nityananda
How to send image as post request using drf
Nasib
SantiU
yeah İ do
Can you help me? my images from db(sqlite3) not load
0x01
Charly
BEcause you deployed an API?
Charly
What are you expecting?
Charly
No APIs dont have login pages or pages at all
Jignesh
How to create role based login page
Charly
I think you don't understand
If you want to see a login page, build one
Dark
or login via admin
maroong
Make sure you collect static files.
Morteza
you should send the data to the backend where you or the professor built the api
maroong
The Frontend has to communicate with the backend. What was it built with? react? If not there's no need to separate it just use Django to build everything.
maroong
Also this endpoint needs a token to be passed in the header. When you login from the Frontend check your web console for a token.
Morteza
It's react
and the application send the request to localhost:8000 which isn't exists
so change the url to the deployed backend URL
Morteza
also you should consider the CORS
maroong
Charly
So thats the login page
Charly
And you should call the django app from the javascript code to login
Charly
the API will never be showed directly to the user
Charly
No, thats what your professor for
Charly
Then teach yourself
Charly
Teach yourself and learn from you
cj
really? where is it?
cj
also it's going beyond offtopic now
Akbar
Can i send a message through django admin panel to telegram user chat ? can anyone please tell me how to do it?
SantiU
Does anyone know a free api to convert a part of the html code to a downloadable image?
Rajeev
Is it really django hosting is costlier than other backend languages like php?
maroong
Jindal
0x01
maroong
Is it costly on cpanel?
Shared hosting comes with a cpanel and it's not costly. I think I used to pay $10-40 a year.
Yooo
features=MultiSelectField(choices=features_choices) im using multiselectfield for my project, im getting error in my code "class Car(models.Model):
File "/web dev proj/CAR-ZONE/cars/models.py", line 108, in Car
features=MultiSelectField(choices=features_choices)
File "web dev proj/CAR-ZONE/env/lib/python3.9/site-packages/multiselectfield/db/fields.py", line 72, in init
self.validators[0] = MaxValueMultiFieldValidator(self.max_length)
IndexError: list assignment index out of range"
Yooo
anyone plz help me with this?
Gaurav Chaudhary
There is problem with validatiora list assignment is guess
Mahesh
Any Best online class for Django
Mahesh
I want to learn Python and Django
Any online class suggestion
floodlit_torte
Mahesh
Thanks
💻
Hi ,
I have deployed my app , but in production it has error with csrf token. How can i solve it? Im using azure and domain is given by azure Im not using a custom domain
IM~Exynos
IM~Exynos
💻
I have used it , everything works well on the local env . In production when I have to submit form it will give me 403 forbidden.
V
View of Add to cart
V
I started a project of online food delivery, but Add to cart function is not working
Y
Hello
I have some issue with my django project, when I try to submit data in my contact form , I get not found : /body in my shell.
Someone's can help me please?
Влад
Hello! How to change page content when changing in db Django?
Михаил
You can use websockets to create it. When db changing send message with websockets to users. With js connect to websocket and get message. Then change page with js. For websockets i use Django channels 3
Михаил
Devendra
Hey coders,best between genric view, class view or function view tell about this
Thanku
mini
Hey..
Did anyone work on aws lambda using python..
mini
I have to create worksite api
mini
Yes i create it also dynamo db database is creted
mini
But i dont know how to workwith rest api in lambda handler
mini
Yes
Dark
Guys, the question is simple, how do you give the api, let's say you give all the articles at once and do the pagination pages on the front, or do you give the api with pagination and use it on the frontend?
Alfredo
Dark
Влад
The Sniper
Can anyone have django projects?
The Sniper
Please send me
Paul
No.
Михаил
Lena
Can anyone help me for customize user model and authenticate function?
Doragonsureiyā
Lena
No one can help you until you explain your difficulties.
Well, I'm designing a system that will login with Metamask. Here, I want to delete all the fields in the User model and leave only the walletAdress and I want to authenticate when the walletAdress comes to me.
I couldn't do this job with any documentation I've read and videos I've watched.