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
By using a database
Plz help me bro how to write models..
RK
Rather plz share reference link
Charly
Plz help me bro how to write models..
So you skipped the django official tutorial, go do it first then you can try to build apps
Charly
Rather plz share reference link
https://docs.djangoproject.com/en/4.0/topics/db/models/
Abhinesh
Failed to load resources: the server response with a status of 500
Check the URL in network and go by views line by line hope u will find it
Anonymous
How to solve csrf cookie not set error
Charly
How to solve csrf cookie not set error
By adding the csrf_token tag to your form: https://docs.djangoproject.com/en/4.0/ref/csrf/
Charly
What should I do next
show how you have done that
Anonymous
show how you have done that
Inside form use {% csrf_token %}
C
Check the URL in network and go by views line by line hope u will find it
When working on local server working fine, but in live server I am getting error
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
When working on local server working fine, but in live server I am getting error
What's in the terminal logs there you can see views file error
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
Mohammed
yes, there is a way
what is it called ? and do you have a good resource for learning it from ?
Maxim
what is it called ? and do you have a good resource for learning it from ?
write something that makes no sense to write, because there is DRF
Doragonsureiyā
what is it called ? and do you have a good resource for learning it from ?
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
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?
Anandu
I got an error in my project pls help me Error NoReverseMatch at /cart/
Anandu
this my view.py
Med
Guys is there any way to use websocket with django rest framework for an chat app with flutter ?
Anonymous
...filter.objects.aggregate(Sum('Total')) Returning value in dict {'Total':500} But I need only value not key please help with solution
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
salar
guys how can i make the user see only his data?
can you give information about your user models and Authentication type?
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
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
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
Doragonsureiyā
Hi! Could you help me with django problems? I can't import app with view.py into urls.py
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
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
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
Guts
Yes
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.
Doragonsureiyā
Hi To All 🥰, I'm Interested to Learn Django 😊 and I don't Know how to start and Anyone help.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
King
Can I get Any Free course or Github repos About Django
X_ShaygaN_D
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
If you meant downloading files like mega nz i sent you the link Otherwise i'd personally: • search about creating a progress bar with html css • create a connection to my app and send updates during the parse Im sure there must be better ways which u'll find faster searching than waiting for someone to help u here Try: "how to create a progress bar in django for parsing files" Just searched that and found link
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