奈姆
mind rule 5 btw
Ako
try this?
@extend_schema(
parameters=[
OpenApiParameter("card_id", OpenApiTypes.NUMBER, OpenApiParameter.PATH),
OpenApiParameter("comment_id", OpenApiTypes.NUMBER, OpenApiParameter.PATH),
]
)
def retrieve(self, request, pk, *args, **kwargs): ...
Yes, I know about that.
I understand that I will have to do this for all methods? There's no other way?
奈姆
Ako
Babak
Hello guys, I used Jwt in my project with simple-jwt package. I waana make logout api with apiview and I try to block and distribute ACCESSTOKEN but I can’t
Please help me
Allexiusw
So yeah based on your model definition you don't have any card_id field, what you have is just id, but you have a way to achieve that. What you really need to do is touch slightly your ViewSet as following:
class CardViewSet(...):
lookup_url_kwarg='card_id'
lookup_field = 'id'
That setting will allow you to receive card_id as url parameter and use id as internal lookup field to retrieve the data from the model. This will also allow you to keep the consistency you need in openapi reflecting card_id as path param...
Pablo
Ярослав
Hello everyone, I'm new to this group, I'm learning django and at this stage I'm learning to do backend, I don't speak much Russian, I would really like to ask you for help with registering on the site, can someone please tell or show me how to do it and how it works or give some video or the site tells you about it, I will be very grateful
S
Hey, I am kinda stuck when I am trying to deploy my django project on AWS, can anyone plss guide me in person?
S
clouded
Ako
Кит
Channels
Aren't sockets/channels redundant when only one-way communication is needed?
El’dar
Junior
Dear, how to include my CSS file styles in my HTML file in my django application
Pablo
Pablo
Check the documentation
Junior
mea
Junior
Pablo
Hello guys, I am looking for a way to dynamically store and return meta tags (title of page, descrption...) for html pages. In my django project, I have around 40 html files and I need a way to render out the meta tags for each page for seo purposes. Does anyone have any ideas? I do not want to do this manually
Mirco
Circuit
Jahongir
I need a guide or example to use (Contabo S3 buckets storage) in Django, can anyone help?
Vasya
I’m having issues migrating Celery tasks from Redis to RabbitMQ. The celery migrate command isn’t working. What are the possible ways to transfer tasks? I couldn’t find anything useful online.
please help🙏
Circuit
Pablo
you can use views.py
Hmm, true but not scalable enough though. If I have a thousand views, I will have to pass it as a context a thousand times
Circuit
Шахбоз
I made a project in Django and uploaded it to the server. I wanted to publish this site on Bitrix24. The site is working but it is not opening in Bitrix.
Ivan
Шахбоз
Шахбоз
Ivan
The bitrix and Django working one one server? Do you use containers?
ʀᴇᴢᴀ
Guy's Introduce me django course for API and only backend🙏🏻
ʀᴇᴢᴀ
English
Alex
ʀᴇᴢᴀ
Alex
Yes
Alex
Destiny franks
Alex
LMS course
roman
Hi, I have a question: what’s the correct way to translate model fields? You can’t translate dynamic content in templates, so how the correct way of doing that looks like?
ℳɾ.ℳơħάʍάđɾ૯zά
How can i deploy django project with nginx in docker ?
NK TRIPLLE
Cyber security
Are you helping me in Django
Doragonsureiyā
roman
Okay, does Django provide dynamic content translation e.g. for database records and what are the best practices for implementing such logic?
Mirco
roman
Vinay
Hello
I am trying to download and apk from my system in the browser but I am getting 404 error like "The requested resource not found on the server"
https://pastebin.com/Ci56PFJK
this is the piece of code from my django view
Can anyone please help?
Саидкутб
https://dpaste.org/uNxp4
https://dpaste.org/OmRQX
Please help me solve the problem. I looked, and they say that I am importing models in a circular manner. But that's not true.
vch.py
Good morning. I have two microservices. They are connected and use different db. The first one is based on Fast API, the second one is based on Django. In the first user database. When adding objects to the database associated with the second microservice, I need to validate so that users with the entered identifiers exist. Now I have written validators in raw sql. how can the same thing be done using orm, given that there is no user model?
奈姆
奈姆
Let's say the microservice A is responsible for auth. Then, it can issue an access token (JWT) upon login. Then the client/user can send that access token to microservice B for auth purposes. You can research on how JWT works in this context.
Ad
FORTUNATE
Anon
Any django book
Mohammed
Alex
Link pls
https://www.udemy.com/share/10axDy3@-hQak--MiLPJRH2oxd-bMFPoAmLdF_CloWNsNRfwmsk16lYf-T3hgWALb5RGwjGt/
.terrri
Maxim
Quni Made
gm,Have a nice weekend
Guess
Hallo everybody, I am a beginner in Django. Can you guys advice me on any Django project that I can do to up my skills
❥︎ 𝓔𝓻𝓯𝓪𝓷
Hello, how can I change the Django admin panel template?
Vinay
Hello guys,
Can anyone please help with apk downloading problem in django.
I am trying to download an apk in the browser, this apk is located in c drive, but I am getting 404 error like "The requested resource not found on the server"
https://pastebin.com/Ci56PFJK
this is the piece of code from my django view
PΛRSΛM
hey I have flutter app and DRF and I want to make API only accept requests from app(just like CORS in web) so how can I do it?
奈姆
Cyber security
We 💯 percent command on Python, Html, Css, After I learn to Django we can't have road map and no resources
Benyamin?!
Excuse me I have a question
Does Django framework have good job opportunities and salary or I would be better to move on another stuff. I would appreciate if somebody answers