Rohan
Charly
Mohit
Anyone help me to deploy website.
Mohit
It's urgent please help
Doragonsureiyā
It's urgent please help
Is it urgent?
You shouldn't be here, wasting time and poking strangers and waiting for them to do your job for you.
Search on Google/DuckDuckGo, do the research, and solve your problem yourself, nobody here will drop what they're doing to do your job, just because "it's urgent!".
Have a nice day! 😉
RK
Rather plz share reference link
Anonymous
How to solve csrf cookie not set error
Anonymous
Anonymous
Evgen
Hello
How can I send html email with css style ?
If I use simple render I have css.
HTML import css: https://dpaste.org/4mEjg#L5
Task.py: https://dpaste.org/pqrDO
Abhinesh
Krunal
Hi,
How can I handle exception in filter data from model?
इमरान عمران Imran
Hi, i want to show the number of api calls made in the throttled response, I'm using custom exception to override the default response it includes message, waiting time and throttle type, how can i include the number of api calls?
Ukasha
Hello. I need some help, i referenced user model as a form model but i want to add a one to one field of another model how can add it.
Ukasha
Ok i got how to solve it
Pavel
Is there any way to adequately merge migrations in django if they happen to be in two different branches in git? So far we have just avoided this
iNeedHighMove
Hello guys I have a problem on deleting a custom specified permission on my user
I use this code in my custom middle ware to check the time and do some staff but not working , no error but also not working
uptoyo = request.user
find_user = Plant.objects.get(from_user = uptoyo)
if find_user.finish_from_time == datetime.today():
permission_user = Permission.objects.get(codename='permium_visit')
uptoyo.user_permissions.delete(permission_user)
I test and know the problem is on the line I tried to delete the permission but what's my mistake on it?❤️
Anonymous
error: AuthToken.user" must be a "User" instance
عنتَر.
hello i have error in pillow
Doragonsureiyā
hello i have error in pillow
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
عنتَر.
Doragonsureiyā
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
👑 Dharmzeey
It's django related
Maxim
It's django related
no, your question is strictly about hosting
stop arguing and take the recommendation
don't forget to delete your posts here
Mohammed
Hallo
Is there a way to combine django and react in one django project ?
I mean to embed react in django not using Django Rest Freamework
Maxim
Mohammed
yes, there is a way
what is it called ? and do you have a good resource for learning it from ?
Maxim
Anna Karolina
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
web_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
web_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
web_1 | File "<frozen importlib._bootstrap_external>", line 843, in exec_module
web_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
web_1 | File "/code/src/marketplace/ultragaz/api/v1/urls.py", line 3, in <module>
web_1 | from . import views
web_1 | File "/code/src/marketplace/ultragaz/api/v1/views.py", line 10, in <module>
web_1 | class OrdersListViewSet(ListAPIView):
web_1 | File "/code/src/marketplace/ultragaz/api/v1/views.py", line 17, in OrdersListViewSet
web_1 | openapi.Field(
web_1 | NameError: name 'openapi' is not defined
Anna Karolina
manual_fields=[
openapi.Field(
"customer_document",
required=False,
description="Numero do pedido",
type="string",
),
]
Mihail
do I understand right, that I can't save() fields of connected through o2o field of object?
client_in_database = Client.objects.get(id=client_id)
client_in_database.partner.company.email = ""
client_in_database.partner.email = ""
client_in_database.save()
Mihail
are any methods which allow to save() object immidiatly after changing? Like .create() when create object?
Mirco
Anandu
I got an error in my project pls help me
Error
NoReverseMatch at /cart/
Anandu
this my view.py
coder
Med
Guys is there any way to use websocket with django rest framework for an chat app with flutter ?
salar
Anonymous
...filter.objects.aggregate(Sum('Total'))
Returning value in dict {'Total':500}
But I need only value not key please help with solution
D
satyam
Hello
Ali
guys how can i make the user see only his data?
Ali
iam using restframework api
satyam
How to ask doubt ?
satyam
I have image but unable to post here
Ali
can you give information about your user models and Authentication type?
for authentication i used the JWT authentication
my models are:
Driver and it has a foreign key to User
Car it has a foreign key to Driver
Violation it has a foreign key to Car
the driver is working fine(the user will see only his data after log in)
but the other models aren't working
Mirco
Ali
Mirco
https://pastebin.com/mk1mNkUY
the code is "terrible" but it seems you are learning so that's ok I hope u keep studying
anyway you are not filtering by FKs , only the driver so it's normal data is not filtered
Ali
Ali
Mirco
and i didn't understand the FKs part
It's exactly like the first filter when you filter by user
You have to do the same for Car etc etc
Study better on Django docs how relationships work
satyam
https://pastebin.com/H6UatB0D
Змей Горыныч
Hi! Could you help me with django problems? I can't import app with view.py into urls.py
Way
Hello. Who can explain how to properly work with formset_factory or inlineformset_factory.
My task looks like this. I have Model1 (it has some data in it) and Model2 (it has an external key on Model1 and some other data)
I have a page with ModelForm for Model1 and also I need to display N ModelForm for Model2. Their number can vary from 1 to N.
I don’t understand which of the constructors I need, why it is called 2 times
Doragonsureiyā
Guts
Good afternoon! There is a task where it is necessary to parse certain information by the inserted link in the field. Then return the received information as an excel file. How can this be implemented? Parsing time can take up to 10 minutes
Maxim
Guts
Yes
X_ShaygaN_D
X_ShaygaN_D
Are you trying to reduce parse time or ...
Guts
I would like to make some animation in the form of a download, after which a file will be downloaded to the user's computer
King
Hi To All 🥰, I'm Interested to Learn Django 😊 and I don't Know how to start and Anyone help.
King
Can I get Any Free course or Github repos About Django
Manavver
Doragonsureiyā
Nothing more...
Guys, I have a problem with django paginator, no errors and exceptions, when trying to output say 3 records, it outputs everything in a row, and there are as many records on the next page. It seems like I wrote everything on the dock, and on another project with pagination everything is normal, but here I don't know what the problem is, the code of the view https://pastebin.com/ekWEQhic