Lipau3n
Also u can change template_name for user in one view
HaClyLo
Ohh okay okay will try. Thanks
Angel
What should i do if my admin side css is not working???
Sai
Then admin css will work
Angel
I have collected
Angel
Still not working
Anonymous
Check your static root directory
Anonymous
Collect the static files
Collected static files dont work in production
Anonymous
Still not working
https://stackoverflow.com/questions/7357057/overriding-admin-css-in-django#:~:text=Write%20in%20it%20all%20the,background%3A%20%23000%3B%7D%20.&text=In%20your%20static%20directory%2C%20create,your%20customizations%20at%20the%20bottom. Try this
⚜️
Hello! How to update last object in queryset?
⚜️
Payment.objects.filter(user_id__in=user).last().update(is_expired=True)
⚜️
Here I am having error like this
⚜️
'Payment' object has no attribute 'update'
Anonymous
'Payment' object has no attribute 'update'
instead try, first get that Payment object, then obj.is_expired=True obj.save(update_fields=["is_expired"])
DK
Can i ask here python problem or only django stuff....???
Sai
Collected static files dont work in production
But we can create the folders inside the machine so our webserver load that css
Sai
Y s only django
Pedro Fumero
How can I do a query and pass the data to a template?
Doragonsureiyā
How can I do a query and pass the data to a template?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
Y s only django
because this is a Django group for Python questions go to @Python group
Anonymous
Model.objects.all() not displaying data but Model.objects.filter() displaying data y...it is not showing data for model.objects.all()
DTN
Hello, could someone help me whit this problem? https://stackoverflow.com/questions/63271872/call-a-function-to-update-queryset-on-django-filter-choicefielter
DTN
Hello, could someone help me whit this problem? https://stackoverflow.com/questions/63271872/call-a-function-to-update-queryset-on-django-filter-choicefielter
Can't update a form dropdown from a callable. It only gets updated after I manually restart the server.
Ferrum
im writing an auto generated schema for my drf app in json format i got something like {"swagger": "2.0", "info": {"title": "Send Mail API", "description": "A Microservice for... but i need to wrap this with a message key how do i edit this documentation to give something like {"message":"API documentation retrieved successfully","data":{"openapi":"3.0.21","info":{"version":"1.0.0","ti.... please help😭
Mehmet
Which action are you using to fetch documentation?
Ferrum
Why writing by yourself ? There are apps like drf-yasg for this job
yeah, im using drf-yasg.. but i need that particular format, so i have to edit the auto generated schema to fit my need
Ferrum
but i dont know how i can
Ferrum
how do i do that here please? schema_view = get_schema_view( openapi.Info( title="Send Mail API", default_version='v1', description="A Microservice for Sending Emails.", ), public=True, url='https://email.microapi.dev/v1/', permission_classes=(permissions.AllowAny,), )
Mirco
Nope you need to decorate your view
Armstrong
Please anyone integrate Chatterbot on django before?
Doragonsureiyā
Please anyone integrate Chatterbot on django before?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Armstrong
Chatterbot in django...integration...
Ferrum
https://drf-yasg.readthedocs.io/en/stable/custom_spec.html
thanks, the thing is its the title and all that i need to edit.. not something present in any view
Mirco
Chatterbot in django...integration...
Did u try to search on internet a little bit ?
Armstrong
Did u try to search on internet a little bit ?
Yes ..I only got for flask..the one with Gunicorn project on GitHub has nltk repetitive download issues
Cohen
Hello everyone
Cohen
I have some python test, that was once passing, but now they are failing.
Cohen
It’s a Account_id from moto.core
Cohen
Moto/core/models.py what I found in github, had about 50 more additional line, from what I had. I copy and paste it, but I’m still getting the same error.
Cohen
ImportError: can not Import name “ACCount_ID’ from ‘moto.core’
Cohen
Some suggest this group.
Cohen
That’s the reason, why I’m here.
Cohen
I’m willing to compensate for your time.
Cohen
I was about deploy it to production, but it fail, do to my test.
Cohen
I’m using CDk to deploy it.
Cohen
My test is the issue.
Cohen
I have a GitHub page, that I can share, if anyone is available to help.
Cohen
https://github.com/ccarrylab/mock_test_aws
Jamil
Hey guys, which one is more professional, django token auth or jwt token auth?
OneZer0
Guys, good night ... I'm getting a file from the databases that arrives for me in the byte type. I need to somehow save this file, even if it is temporarily in memory for reading. Can someone help me?
ᴹᵃᵏˢᵃᵗ
Django is for python as what wordpress is to PHP
And surprisingly as what Ruby on Rails is to Ruby😊
Anonymous
How to add weather forecast with Django in my website ?thanks
isa
How to add weather forecast with Django in my website ?thanks
People don't want to reply meta questions.
Anonymous
i want to use search filter by month in django for visitor entry detail
Anonymous
plzz tell me solution
sarang
Hey can we add multiple choice field in model???
Armstrong
Hey can we add multiple choice field in model???
Use charfield ND a tuple for the fields indicating the value and the text ...then for loop it. Infact check the documentation... its there
sarang
Ok
Anurag
i am facing problem in using apscheduler anyone can help
Anurag
https://medium.com/@mrgrantanderson/replacing-cron-and-running-background-tasks-in-django-using-apscheduler-and-django-apscheduler-d562646c062e
Anurag
i am using above blog
Anurag
plzz help me above are the codes i used in specific file
Mirco
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Anonymous
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Cohen
Hello everyone
Cohen
Happy Thursday.
Cohen
I’m getting NotImplentedError in my Unit rest can anyone help?